Wither skull explosions are now blocked by fireball explosion protection (territoryBlockFireballs etc.)

only needed in 1.6.x branch since 1.7 branch handles all explosions the same
This commit is contained in:
Brettflan 2012-10-29 19:24:31 -05:00
parent 53de526151
commit 1707582e80

View File

@ -18,6 +18,7 @@ import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.entity.WitherSkull;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
@ -163,7 +164,7 @@ public class FactionsEntityListener implements Listener
}
else if
(
boomer instanceof Fireball
(boomer instanceof Fireball || boomer instanceof WitherSkull)
&&
(
(faction.isNone() && Conf.wildernessBlockFireballs && !Conf.worldsNoWildernessProtection.contains(loc.getWorld().getName()))