Paper/paper-server/nms-patches/net/minecraft/world/level
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
..
block SPIGOT-6795: Fix BlockFertilizeEvent not being triggered for Azaleas 2021-12-01 08:27:58 +11:00
border Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
chunk #971: Remove strong chunk reference in PDC 2021-12-05 08:52:51 +11:00
entity Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
gameevent/vibrations Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
levelgen Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00
material Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
portal Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
saveddata/maps Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
storage SPIGOT-6802: Fix major issues with --forceUpgrade 2021-11-23 17:13:52 +11:00
CommandBlockListenerAbstract.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
Explosion.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
GameRules.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
GeneratorAccess.patch Update to Minecraft 1.18-pre8 2021-11-25 08:00:00 +11:00
IBlockAccess.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
IWorldWriter.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
MobSpawnerAbstract.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
RayTrace.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
SpawnerCreature.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
StructureManager.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
World.patch Improve multi-dimension code 2021-11-23 18:39:43 +11:00
WorldAccess.patch Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00