소스 검색

Check length of the Y dimension of the array, not the x dimension, which will only be 16

t00thpick1 8 년 전
부모
커밋
028f87653a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java

+ 2 - 2
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;