From a25151306c004b058be9a5f4fdf5b9d3933eb182 Mon Sep 17 00:00:00 2001 From: Andrew Ardill Date: Thu, 8 Dec 2011 10:26:39 +1100 Subject: [PATCH] Fix NPE as described in BUKKIT-245. Thanks snowleo --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 334930f62e..4bc1552433 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -898,7 +898,7 @@ public class CraftWorld implements World { public void explodeBlock(Block block, float yield) { // First of all, don't explode fire - if (block.getType().equals(Material.FIRE)) { + if (block.getType().equals(org.bukkit.Material.AIR) || block.getType().equals(org.bukkit.Material.FIRE)) { return; } int blockId = block.getTypeId();