From d62a1b5ad30beab0832498015f18d3dee1de4825 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 29 Jul 2021 20:37:10 +0100 Subject: [PATCH] Always trim chunk GET in ChunkHolder - Possibly something to do with #1169 --- .../core/queue/implementation/chunk/ChunkHolder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java index 9a32aacff..f9b2be467 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java @@ -862,6 +862,8 @@ public class ChunkHolder> implements IQueueChunk { @Override public synchronized boolean trim(boolean aggressive) { + // always trim GET. It could be cached elsewhere. + chunkExisting.trim(aggressive); if (chunkSet != null) { final boolean result = chunkSet.trim(aggressive); if (result) { @@ -878,8 +880,6 @@ public class ChunkHolder> implements IQueueChunk { } else if (delegate == GET) { delegate = NULL; } - } else { - chunkExisting.trim(false); } return false; }