diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/item/ItemWorldMap.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/item/ItemWorldMap.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/item/ItemWorldMap.patch b/patch-remap/og/net/minecraft/world/item/ItemWorldMap.patch new file mode 100644 index 0000000000..a3353d72e8 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/item/ItemWorldMap.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/item/ItemWorldMap.java ++++ b/net/minecraft/world/item/ItemWorldMap.java +@@ -69,7 +69,7 @@ + public static Integer getMapId(ItemStack itemstack) { + NBTTagCompound nbttagcompound = itemstack.getTag(); + +- return nbttagcompound != null && nbttagcompound.contains("map", 99) ? nbttagcompound.getInt("map") : null; ++ return nbttagcompound != null && nbttagcompound.contains("map", 99) ? nbttagcompound.getInt("map") : -1; // CraftBukkit - make new maps for no tag + } + + public static int createNewSavedData(World world, int i, int j, int k, boolean flag, boolean flag1, ResourceKey<World> resourcekey) { |