aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch
new file mode 100644
index 0000000000..547eacc615
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/MapItem.java.patch
@@ -0,0 +1,11 @@
+--- a/net/minecraft/world/item/MapItem.java
++++ b/net/minecraft/world/item/MapItem.java
+@@ -69,7 +69,7 @@
+ public static Integer getMapId(ItemStack itemstack) {
+ CompoundTag compoundtag = itemstack.getTag();
+
+- return compoundtag != null && compoundtag.contains("map", 99) ? compoundtag.getInt("map") : null;
++ return nbttagcompound != null && nbttagcompound.contains("map", 99) ? nbttagcompound.getInt("map") : -1; // CraftBukkit - make new maps for no tag
+ }
+
+ private static int createNewSavedData(Level level, int i, int j, int k, boolean flag, boolean flag1, ResourceKey<Level> resourcekey) {