Also handle bottom of world

This commit is contained in:
t00thpick1 2017-09-01 00:44:37 -04:00
parent e0bbe9cea4
commit f279a979e3

View File

@ -56,7 +56,7 @@ public class PrimitiveChunkStore implements ChunkStore {
@Override
public void setTrue(int x, int y, int z) {
if (z > maxZ)
if (z > maxZ || z < 0)
return;
store[x][z][y] = true;
dirty = true;
@ -64,7 +64,7 @@ public class PrimitiveChunkStore implements ChunkStore {
@Override
public void setFalse(int x, int y, int z) {
if (z > maxZ)
if (z > maxZ || z < 0)
return;
store[x][z][y] = false;
dirty = true;