mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-28 20:19:00 +01:00
Don't cancel explosion if we only want to clear blocklist. May potentially cause issues with multiple settings overlapping.
This commit is contained in:
parent
e0e4207a4d
commit
d1e221c2b7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user