mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 04:55:28 +02:00
Check length of the Y dimension of the array, not the x dimension, which will only be 16
This commit is contained in:
@@ -54,7 +54,7 @@ public class PrimitiveChunkStore implements ChunkStore {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTrue(int x, int y, int z) {
|
public void setTrue(int x, int y, int z) {
|
||||||
if (y >= store.length || y < 0)
|
if (y >= store[0][0].length || y < 0)
|
||||||
return;
|
return;
|
||||||
store[x][z][y] = true;
|
store[x][z][y] = true;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
@@ -62,7 +62,7 @@ public class PrimitiveChunkStore implements ChunkStore {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setFalse(int x, int y, int z) {
|
public void setFalse(int x, int y, int z) {
|
||||||
if (y >= store.length || y < 0)
|
if (y >= store[0][0].length || y < 0)
|
||||||
return;
|
return;
|
||||||
store[x][z][y] = false;
|
store[x][z][y] = false;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
Reference in New Issue
Block a user