From 308a5aa78135484a290ba943fcd80ca29ad0876e Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 13 Oct 2022 18:17:27 +0100 Subject: [PATCH] Ensure all setBlock methods in BlockArrayCacheScopedQueueCoordinator apply the correct offset (#3843) - 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; }