Skip to content
Success

Changes

Summary

  1. SPIGOT-5228: Entities that are removed during chunk unloads are not (details)
Commit 8c7d69fefca16aaaac0465dce30899bc74944838 by md_5
SPIGOT-5228: Entities that are removed during chunk unloads are not
properly removed from the chunk.

This could lead to dead entities accumulating in memory over time if the
chunk never gets fully unloaded (as it is the case for chunks around the
spawn region).

The issue is that Minecraft processes the removal of these entities
during the next tick, when the chunk has already switched to state
INACCESSIBLE and can no longer be retrieved as usual.

For the purpose of removing dead entities from their still loaded but no
longer accessible chunk, this adds and uses a new method with which a
chunk can be accessed without checking its current state first.
The file was modifiednms-patches/ChunkProviderServer.patch
The file was modifiednms-patches/PlayerChunk.patch
The file was modifiednms-patches/WorldServer.patch