diff --git a/nms-patches/ChunkRegionLoader.patch b/nms-patches/ChunkRegionLoader.patch index fe03a3945..f77d3d98c 100644 --- a/nms-patches/ChunkRegionLoader.patch +++ b/nms-patches/ChunkRegionLoader.patch @@ -23,7 +23,7 @@ object = new Chunk(worldserver.getMinecraftWorld(), chunkcoordintpair, biomestorage, chunkconverter, (TickList) object1, (TickList) object2, j, achunksection, (chunk) -> { loadEntities(nbttagcompound1, chunk); + // CraftBukkit start - load chunk persistent data from nbt -+ NBTBase persistentBase = nbttagcompound1.get("BukkitValues"); ++ NBTBase persistentBase = nbttagcompound1.get("ChunkBukkitValues"); + if (persistentBase instanceof NBTTagCompound) { + chunk.persistentDataContainer.putAll((NBTTagCompound) persistentBase); + } @@ -48,7 +48,7 @@ + // CraftBukkit start - store chunk persistent data in nbt + if (!chunk.persistentDataContainer.isEmpty()) { -+ nbttagcompound1.set("BukkitValues", chunk.persistentDataContainer.toTagCompound()); ++ nbttagcompound1.set("ChunkBukkitValues", chunk.persistentDataContainer.toTagCompound()); + } + // CraftBukkit end +