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.
This commit is contained in:
parent
9e91bcabf2
commit
b8dd5ec216
@ -23,7 +23,7 @@
|
|||||||
object = new Chunk(worldserver.getMinecraftWorld(), chunkcoordintpair, biomestorage, chunkconverter, (TickList) object1, (TickList) object2, j, achunksection, (chunk) -> {
|
object = new Chunk(worldserver.getMinecraftWorld(), chunkcoordintpair, biomestorage, chunkconverter, (TickList) object1, (TickList) object2, j, achunksection, (chunk) -> {
|
||||||
loadEntities(nbttagcompound1, chunk);
|
loadEntities(nbttagcompound1, chunk);
|
||||||
+ // CraftBukkit start - load chunk persistent data from nbt
|
+ // CraftBukkit start - load chunk persistent data from nbt
|
||||||
+ NBTBase persistentBase = nbttagcompound1.get("BukkitValues");
|
+ NBTBase persistentBase = nbttagcompound1.get("ChunkBukkitValues");
|
||||||
+ if (persistentBase instanceof NBTTagCompound) {
|
+ if (persistentBase instanceof NBTTagCompound) {
|
||||||
+ chunk.persistentDataContainer.putAll((NBTTagCompound) persistentBase);
|
+ chunk.persistentDataContainer.putAll((NBTTagCompound) persistentBase);
|
||||||
+ }
|
+ }
|
||||||
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
+ // CraftBukkit start - store chunk persistent data in nbt
|
+ // CraftBukkit start - store chunk persistent data in nbt
|
||||||
+ if (!chunk.persistentDataContainer.isEmpty()) {
|
+ if (!chunk.persistentDataContainer.isEmpty()) {
|
||||||
+ nbttagcompound1.set("BukkitValues", chunk.persistentDataContainer.toTagCompound());
|
+ nbttagcompound1.set("ChunkBukkitValues", chunk.persistentDataContainer.toTagCompound());
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
+
|
+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user