From 3f103eea9b7211e2d193f7b2ab3e9f0a59561f02 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 21 Jun 2022 12:55:51 +0100 Subject: [PATCH] Set the correct delegate to the ChunkHolder when using get or set in NULL delegate (#1830) --- .../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 0cf52aefd..763087c3b 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 @@ -744,14 +744,14 @@ public class ChunkHolder> implements IQueueChunk { @Override public IChunkGet get(ChunkHolder chunk) { chunk.getOrCreateGet(); - chunk.delegate = BOTH; + chunk.delegate = GET; return chunk.chunkExisting; } @Override public IChunkSet set(ChunkHolder chunk) { chunk.getOrCreateSet(); - chunk.delegate = BOTH; + chunk.delegate = SET; return chunk.chunkSet; }