2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/item/ItemWorldMap.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemWorldMap.java
|
2023-12-08 19:20:05 +11:00
|
|
|
@@ -69,7 +69,7 @@
|
2021-11-22 09:00:00 +11:00
|
|
|
public static Integer getMapId(ItemStack itemstack) {
|
2018-07-15 10:00:00 +10:00
|
|
|
NBTTagCompound nbttagcompound = itemstack.getTag();
|
|
|
|
|
2021-11-22 09:00:00 +11:00
|
|
|
- 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
|
2016-11-17 12:41:03 +11:00
|
|
|
}
|
|
|
|
|
2021-07-07 00:00:00 +10:00
|
|
|
public static int createNewSavedData(World world, int i, int j, int k, boolean flag, boolean flag1, ResourceKey<World> resourcekey) {
|