diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitHybridUtils.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitHybridUtils.java index 1cfa93040..225998ab2 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitHybridUtils.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitHybridUtils.java @@ -173,11 +173,13 @@ public class BukkitHybridUtils extends HybridUtils { } Material material = Material.getMaterial(now); - Class md = material.getData(); - if (md.equals(Directional.class)) { - data[i] += 8; - } else if (!md.equals(MaterialData.class)) { - data[i]++; + if (material != null) { + Class md = material.getData(); + if (md.equals(Directional.class)) { + data[i] += 8; + } else if (!md.equals(MaterialData.class)) { + data[i]++; + } } types.add(now); }