mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
aacf3bd308
By: md_5 <git@md-5.net>
11 lines
658 B
Diff
11 lines
658 B
Diff
--- 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) {
|