From 530566ef2cb2e1b56d5f5dabcb215f781c469452 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 3 Mar 2016 08:55:32 +1100 Subject: [PATCH] Fix solid check --- .../java/com/boydti/fawe/bukkit/v1_9/BukkitQueue_1_9.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitQueue_1_9.java b/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitQueue_1_9.java index 241253dc..86b1eaed 100644 --- a/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitQueue_1_9.java +++ b/src/main/java/com/boydti/fawe/bukkit/v1_9/BukkitQueue_1_9.java @@ -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) {