diff --git a/pom.xml b/pom.xml
index 5eecb15..d830bee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
tech.sbdevelopment
MapReflectionAPI
- 1.6.5
+ 1.6.6
jar
MapReflectionAPI
@@ -48,7 +48,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.13.0
+ 3.14.0
11
@@ -119,7 +119,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.11.1
+ 3.11.2
11
${maven.lombok.delombok-target}
@@ -176,7 +176,7 @@
org.spigotmc
spigot-api
- 1.21.3-R0.1-SNAPSHOT
+ 1.21.5-R0.1-SNAPSHOT
provided
@@ -192,9 +192,9 @@
compile
- com.github.stijnb1234
+ com.github.cryptomorin
XSeries
- 5a4bf81a2c
+ 13.1.0
@@ -207,7 +207,7 @@
io.netty
netty-transport
- 4.1.97.Final
+ 4.1.118.Final
provided
diff --git a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
index 70b23e6..c2b6edd 100644
--- a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
+++ b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MapWrapper.java
@@ -69,8 +69,6 @@ public class MapWrapper extends AbstractMapWrapper {
private static final Class> entityMetadataPacketClass = getNMSClass("network.protocol.game", "PacketPlayOutEntityMetadata");
private static final Class> entityItemFrameClass = getNMSClass("world.entity.decoration", "EntityItemFrame");
private static final Class> dataWatcherItemClass = getNMSClass("network.syncher", "DataWatcher$Item");
- private static final Class> minecraftKeyClass = getNMSClass("resources", "MinecraftKey");
- private static final Class> builtInRegistriesClass = getNMSClass("core.registries", "BuiltInRegistries");
protected MapController controller = new MapController() {
private final Map viewers = new HashMap<>();
@@ -169,8 +167,8 @@ public class MapWrapper extends AbstractMapWrapper {
String inventoryMenuName;
if (supports(21)) {
- //1.21 = cc
- inventoryMenuName = "cc";
+ //1.21.5 = bQ, 1.21 - 1.21.4 = cc
+ inventoryMenuName = supports(21, 4) ? "bQ" : "cc";
} else if (supports(20)) {
//1.20.5 = cb, 1.20.2 - 1.20.4 = bR, 1.20(.1) = bQ
inventoryMenuName = supports(20, 4) ? "cb" : supports(20, 2) ? "bR" : "bQ";
@@ -295,7 +293,7 @@ public class MapWrapper extends AbstractMapWrapper {
//1.20.5 uses new NBT compound system
if (supports(20, 4)) {
- Object mapIdComponent = ReflectionUtil.getDeclaredField(getNMSClass("core.component", "DataComponents"), supports(21, 2) ? "L" : "B"); //1.21.2+ uses L, otherwise B
+ Object mapIdComponent = ReflectionUtil.getDeclaredField(getNMSClass("core.component", "DataComponents"), supports(21, 4) ? "M" : supports(21, 2) ? "L" : "B"); //1.21.2+ uses L, otherwise B
Object mapId1 = ReflectionUtil.callConstructor(getNMSClass("world.level.saveddata.maps", "MapId"), mapId);
// Use generic reflection because of generics
diff --git a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MultiMapWrapper.java b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MultiMapWrapper.java
index 795a2be..be6efd7 100644
--- a/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MultiMapWrapper.java
+++ b/src/main/java/tech/sbdevelopment/mapreflectionapi/api/MultiMapWrapper.java
@@ -64,10 +64,8 @@ public class MultiMapWrapper extends AbstractMapWrapper {
* Creates a new {@link MultiMapWrapper} from the given image.
*
* @param imageMatrix The image matrix to wrap
- * @deprecated Use {@link #MultiMapWrapper(ArrayImage, int, int)} instead, this method is meant for internal use only.
*/
- @Deprecated(since = "1.6", forRemoval = true)
- public MultiMapWrapper(ArrayImage[][] imageMatrix) {
+ protected MultiMapWrapper(ArrayImage[][] imageMatrix) {
wrapperMatrix = new MapWrapper[imageMatrix.length][imageMatrix[0].length];
for (int row = 0; row < imageMatrix.length; row++) {
@@ -85,10 +83,8 @@ public class MultiMapWrapper extends AbstractMapWrapper {
* Creates a new {@link MultiMapWrapper} from the given image.
*
* @param imageMatrix The image matrix to wrap
- * @deprecated Use {@link #MultiMapWrapper(BufferedImage, int, int)} instead, this method is meant for internal use only.
*/
- @Deprecated(since = "1.6", forRemoval = true)
- public MultiMapWrapper(BufferedImage[][] imageMatrix) {
+ protected MultiMapWrapper(BufferedImage[][] imageMatrix) {
wrapperMatrix = new MapWrapper[imageMatrix.length][imageMatrix[0].length];
for (int row = 0; row < imageMatrix.length; row++) {