From cb1f73330339491780c40d90675601922dfc12b3 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 25 May 2020 12:53:40 -0400 Subject: [PATCH] Restore a condition I accidently removed in last build --- Spigot-Server-Patches/Unload-leaked-Cached-Chunks.patch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Spigot-Server-Patches/Unload-leaked-Cached-Chunks.patch b/Spigot-Server-Patches/Unload-leaked-Cached-Chunks.patch index 09f26878f..4eed41cb0 100644 --- a/Spigot-Server-Patches/Unload-leaked-Cached-Chunks.patch +++ b/Spigot-Server-Patches/Unload-leaked-Cached-Chunks.patch @@ -36,6 +36,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + if (chunkHolderStatus != null && !chunkHolderStatus.isAtLeastStatus(desiredStatus)) { + return; + } ++ if (playerchunk.lastActivity == 0) { ++ playerchunk.lastActivity = world.getTime(); ++ return; ++ } + playerchunk.lastActivity = world.getTime(); + Chunk chunk = playerchunk.getChunk(); + if ((chunk != null && chunk.isAnyNeighborsLoaded()) || !playerchunk.neighborPriorities.isEmpty()) {