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 (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;
}