Fix solid check

This commit is contained in:
Jesse Boyd 2016-03-03 08:55:32 +11:00
parent 5edfcecc69
commit 530566ef2c

View File

@ -270,7 +270,11 @@ public class BukkitQueue_1_9 extends BukkitQueue_0 {
}
public boolean isSolid(int i) {
return i != 0 && Material.getMaterial(i).isOccluding();
if (i != 0) {
Material material = Material.getMaterial(i);
return material != null && Material.getMaterial(i).isOccluding();
}
return false;
}
public int getId(int[][] sections, int x, int y, int z) {