mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Check length of the Y dimension of the array, not the x dimension, which will only be 16
This commit is contained in:
parent
0e51983819
commit
028f87653a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user