From d719a30af5736af6ed0f76c2e1b90ff7406e6034 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 18 Oct 2020 07:24:10 +1100 Subject: [PATCH] Rename Chunk "BukkitValues" key to "ChunkBukkitValues" This will discard extra data increasing the size of the chunk from users affected by the bug in the previous commits. The impact of this (affecting all users) is likely to be much higher than users with plugins relying on an API introduced within the last 12 hours. By: md_5 --- paper-server/nms-patches/ChunkRegionLoader.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/nms-patches/ChunkRegionLoader.patch b/paper-server/nms-patches/ChunkRegionLoader.patch index fe03a3945e..f77d3d98ca 100644 --- a/paper-server/nms-patches/ChunkRegionLoader.patch +++ b/paper-server/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 +