Don't cancel explosion if we only want to clear blocklist. May potentially cause issues with multiple settings overlapping.

This commit is contained in:
Wizjany 2013-01-19 08:46:51 -05:00
parent e0e4207a4d
commit d1e221c2b7

View File

@ -538,7 +538,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
if (ent instanceof Wither) { if (ent instanceof Wither) {
if (wcfg.blockWitherBlockDamage) { if (wcfg.blockWitherBlockDamage) {
event.blockList().clear(); event.blockList().clear();
event.setCancelled(true);
return; return;
} }
@ -551,7 +550,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
if (ent instanceof WitherSkull) { if (ent instanceof WitherSkull) {
if (wcfg.blockWitherSkullBlockDamage) { if (wcfg.blockWitherSkullBlockDamage) {
event.blockList().clear(); event.blockList().clear();
event.setCancelled(true);
return; return;
} }
@ -564,7 +562,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
if (ent instanceof Creeper) { if (ent instanceof Creeper) {
if (wcfg.blockCreeperBlockDamage) { if (wcfg.blockCreeperBlockDamage) {
event.blockList().clear(); event.blockList().clear();
event.setCancelled(true);
return; return;
} }
@ -607,7 +604,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
} else if (ent instanceof TNTPrimed) { } else if (ent instanceof TNTPrimed) {
if (wcfg.blockTNTBlockDamage) { if (wcfg.blockTNTBlockDamage) {
event.blockList().clear(); event.blockList().clear();
event.setCancelled(true);
return; return;
} }
@ -630,7 +626,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
} else if (ent instanceof Fireball && !(ent instanceof WitherSkull)) { } else if (ent instanceof Fireball && !(ent instanceof WitherSkull)) {
if (wcfg.blockFireballBlockDamage) { if (wcfg.blockFireballBlockDamage) {
event.blockList().clear(); event.blockList().clear();
event.setCancelled(true);
return; return;
} }