From a58581751e7c1b14ad19c9c1fd2bfff673c19306 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 9 Oct 2022 15:50:47 +0100 Subject: [PATCH] fix: ensure all setBlock methods in BlockArrayCacheScopedQueueCoordinator apply the correct offset - Fixes #3783 --- .../core/queue/BlockArrayCacheScopedQueueCoordinator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/queue/BlockArrayCacheScopedQueueCoordinator.java b/Core/src/main/java/com/plotsquared/core/queue/BlockArrayCacheScopedQueueCoordinator.java index 243f5637f..c26d8ff16 100644 --- a/Core/src/main/java/com/plotsquared/core/queue/BlockArrayCacheScopedQueueCoordinator.java +++ b/Core/src/main/java/com/plotsquared/core/queue/BlockArrayCacheScopedQueueCoordinator.java @@ -116,7 +116,7 @@ public class BlockArrayCacheScopedQueueCoordinator extends ScopedQueueCoordinato x += offsetX; z += offsetZ; if (x >= scopeMinX && x < scopeMaxX && y >= minY && y <= maxY && z >= scopeMinZ && z < scopeMaxZ) { - blockStates[y - minY][x][z] = id.toImmutableState(); + blockStates[y - minY][x - scopeMinX][z - scopeMinZ] = id.toImmutableState(); } return false; }