PaperMC/paper-server/nms-patches/net/minecraft/world
CraftBukkit/Spigot 24b8f3c641 #971: Remove strong chunk reference in PDC
A previous fix for SPIGOT-6814 implemented a callback function for the
PDC implementation that could be set to actively define a chunk as
unsaved, allowing chunks that have not been mutated through block
changes to still require saving if the chunks pdc was mutated.

This implementation however would pass a callback that references the
chunk access internally, meaning the PDC now actively holds onto a
callback that holds a reference to the entire chunk.

Aditionally, this change also impacted the pdc for item metas and
entities for really no reason whatsoever.

This commit re-implements the fix by introducing a new child of the pdc
implementation that the chunk now uses as its pdc. This specific
implementation maintains a dirty flag that is set to `true` on any form
of mutation and set back to false by the chunk that owns the PDC
whenever the chunk itself is flag as no longer dirty.

By: Bjarne Koll <lynxplay101@gmail.com>
2021-12-05 08:52:51 +11:00
..
damagesource Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
effect Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
entity #967: Store last lava contact location for events 2021-12-04 08:06:32 +11:00
food Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
inventory Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
item Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00
level #971: Remove strong chunk reference in PDC 2021-12-05 08:52:51 +11:00
ChestLock.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
IInventory.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
InventoryLargeChest.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
InventorySubcontainer.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00