Fixes #1221 (the NPE at least)

This commit is contained in:
Jesse Boyd 2016-06-26 17:07:46 +10:00
parent f20ef15774
commit 7da0b9877f

View File

@ -82,6 +82,7 @@ public class BukkitLocalQueue<T> extends BasicLocalBlockQueue<T> {
if (blocksLayer != null) { if (blocksLayer != null) {
for (int j = 0; j < blocksLayer.length; j++) { for (int j = 0; j < blocksLayer.length; j++) {
PlotBlock block = blocksLayer[j]; PlotBlock block = blocksLayer[j];
if (block != null) {
int x = MainUtil.x_loc[layer][j]; int x = MainUtil.x_loc[layer][j];
int y = MainUtil.y_loc[layer][j]; int y = MainUtil.y_loc[layer][j];
int z = MainUtil.y_loc[layer][j]; int z = MainUtil.y_loc[layer][j];
@ -100,6 +101,7 @@ public class BukkitLocalQueue<T> extends BasicLocalBlockQueue<T> {
} }
} }
} }
}
public void setBiomes(LocalChunk<T> lc) { public void setBiomes(LocalChunk<T> lc) {
if (lc.biomes != null) { if (lc.biomes != null) {