diff --git a/pom.xml b/pom.xml
index 88dc353..0ad424c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,6 +40,13 @@
UTF-8
+
+
+ nexus-releases
+ https://repo.sbdevelopment.tech/repository/maven-releases/
+
+
+
@@ -73,6 +80,33 @@
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+ 3.0.0-M2
+
+ true
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+
+
+ default-deploy
+ deploy
+
+ deploy
+
+
+
+
+ nexus-releases
+ https://repo.sbdevelopment.tech/
+ true
+
+
@@ -102,6 +136,7 @@
org.spigotmc
spigot-api
1.19-R0.1-SNAPSHOT
+ provided
com.bergerkiller.bukkit
@@ -112,7 +147,7 @@
com.comphenix.protocol
ProtocolLib
- 4.8.0
+ 5.0.0-SNAPSHOT
provided
diff --git a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapSender.java b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapSender.java
index 388b3d8..30a1252 100644
--- a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapSender.java
+++ b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapSender.java
@@ -73,7 +73,7 @@ public class MapSender {
}
private static final Class> packetPlayOutMapClass = ReflectionUtil.getNMSClass("network.protocol.game", "PacketPlayOutMap");
- private static final Class> worldMapData = ReflectionUtil.supports(17) ? ReflectionUtil.getNMSClass("world.level.saveddata.maps", "WorldMap") : null;
+ private static final Class> worldMapData = ReflectionUtil.supports(17) ? ReflectionUtil.getNMSClass("world.level.saveddata.maps", "WorldMap$b") : null;
/**
* Send a map to a player
diff --git a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
index 2e30754..7e48ea9 100644
--- a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
+++ b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
@@ -47,9 +47,9 @@ public class MapWrapper {
this.content = image;
}
- private static final Class> craftStackClass = ReflectionUtil.getCraftClass("CraftItemStack");
+ private static final Class> craftStackClass = ReflectionUtil.getCraftClass("inventory.CraftItemStack");
private static final Class> setSlotPacketClass = ReflectionUtil.getNMSClass("network.protocol.game", "PacketPlayOutSetSlot");
- private static final Class> tagCompoundClass = ReflectionUtil.getCraftClass("NBTTagCompound");
+ private static final Class> tagCompoundClass = ReflectionUtil.getNMSClass("nbt", "NBTTagCompound");
private static final Class> entityClass = ReflectionUtil.getNMSClass("world.entity", "Entity");
private static final Class> dataWatcherClass = ReflectionUtil.getNMSClass("network.syncher", "DataWatcher");
private static final Class> entityMetadataPacketClass = ReflectionUtil.getNMSClass("network.protocol.game", "PacketPlayOutEntityMetadata");
@@ -260,7 +260,7 @@ public class MapWrapper {
}
ReflectionUtil.callMethod(nbtObject, ReflectionUtil.supports(18) ? "a" : "setInt", "map", mapId);
- Object dataWatcher = ReflectionUtil.callConstructor(dataWatcherClass, entityClass.cast(null));
+ Object dataWatcher = ReflectionUtil.callConstructorNull(dataWatcherClass, entityClass);
Object packet = ReflectionUtil.callConstructor(entityMetadataPacketClass,
entityId,
@@ -268,9 +268,9 @@ public class MapWrapper {
true
);
- List