From d1e221c2b787060a052f37f256a386f42a72e7da Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sat, 19 Jan 2013 08:46:51 -0500 Subject: [PATCH] Don't cancel explosion if we only want to clear blocklist. May potentially cause issues with multiple settings overlapping. --- .../sk89q/worldguard/bukkit/WorldGuardEntityListener.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 8892019e..70dbe1a8 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -538,7 +538,6 @@ public void onEntityExplode(EntityExplodeEvent event) { if (ent instanceof Wither) { if (wcfg.blockWitherBlockDamage) { event.blockList().clear(); - event.setCancelled(true); return; } @@ -551,7 +550,6 @@ public void onEntityExplode(EntityExplodeEvent event) { if (ent instanceof WitherSkull) { if (wcfg.blockWitherSkullBlockDamage) { event.blockList().clear(); - event.setCancelled(true); return; } @@ -564,7 +562,6 @@ public void onEntityExplode(EntityExplodeEvent event) { if (ent instanceof Creeper) { if (wcfg.blockCreeperBlockDamage) { event.blockList().clear(); - event.setCancelled(true); return; } @@ -607,7 +604,6 @@ public void onEntityExplode(EntityExplodeEvent event) { } else if (ent instanceof TNTPrimed) { if (wcfg.blockTNTBlockDamage) { event.blockList().clear(); - event.setCancelled(true); return; } @@ -630,7 +626,6 @@ public void onEntityExplode(EntityExplodeEvent event) { } else if (ent instanceof Fireball && !(ent instanceof WitherSkull)) { if (wcfg.blockFireballBlockDamage) { event.blockList().clear(); - event.setCancelled(true); return; }