Fix: Creeper explosions don't hurt claimed animals.

This commit is contained in:
ryanhamshire committed 2014-11-18 19:36:39 -08:00
1 parent 0a2a4f3f71
commit bb0f0bcf92
1 file changed
+1 -1
@@ -495,7 +495,7 @@ class EntityEventHandler implements Listener
PlayerData playerData = null;
//if not a player or an explosive, allow
if(attacker == null && !(damageSource instanceof Explosive))
if(attacker == null && damageSource.getType() != EntityType.CREEPER && !(damageSource instanceof Explosive))
{
return;
}