Ensure all setBlock methods in BlockArrayCacheScopedQueueCoordinator apply the correct offset (#3843)

- Fixes #3783
This commit is contained in:
Jordan 2022-10-13 18:17:27 +01:00 committed by GitHub
parent e244527538
commit 308a5aa781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}