mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Also handle bottom of world
This commit is contained in:
parent
e0bbe9cea4
commit
f279a979e3
@ -56,7 +56,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 (z > maxZ)
|
if (z > maxZ || z < 0)
|
||||||
return;
|
return;
|
||||||
store[x][z][y] = true;
|
store[x][z][y] = true;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
@ -64,7 +64,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 (z > maxZ)
|
if (z > maxZ || z < 0)
|
||||||
return;
|
return;
|
||||||
store[x][z][y] = false;
|
store[x][z][y] = false;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user