From 028f87653a5aa8958c705e0f5ec567c63dbee925 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 8 Sep 2017 23:16:41 -0400 Subject: [PATCH] Check length of the Y dimension of the array, not the x dimension, which will only be 16 --- .../nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java index 94989e14e..dca61ec81 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java @@ -54,7 +54,7 @@ public class PrimitiveChunkStore implements ChunkStore { @Override public void setTrue(int x, int y, int z) { - if (y >= store.length || y < 0) + if (y >= store[0][0].length || y < 0) return; store[x][z][y] = true; dirty = true; @@ -62,7 +62,7 @@ public class PrimitiveChunkStore implements ChunkStore { @Override public void setFalse(int x, int y, int z) { - if (y >= store.length || y < 0) + if (y >= store[0][0].length || y < 0) return; store[x][z][y] = false; dirty = true;