Fix one last witherskull/fireball conflict

This commit is contained in:
wizjany 2013-03-22 19:28:18 -04:00
parent 0cf87ae561
commit 1bd367ddde

View File

@ -295,9 +295,16 @@ private void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
}
if (attacker instanceof Fireball) {
if (wcfg.blockFireballExplosions) {
event.setCancelled(true);
return;
if (attacker instanceof WitherSkull) {
if (wcfg.blockWitherSkullExplosions) {
event.setCancelled(true);
return;
}
} else {
if (wcfg.blockFireballExplosions) {
event.setCancelled(true);
return;
}
}
if (wcfg.useRegions) {
Fireball fireball = (Fireball) attacker;