Fix: Creeper explosions don't hurt claimed animals.

This commit is contained in:
ryanhamshire 2014-11-18 19:36:39 -08:00
parent 0a2a4f3f71
commit bb0f0bcf92

View File

@ -495,7 +495,7 @@ class EntityEventHandler implements Listener
PlayerData playerData = null; PlayerData playerData = null;
//if not a player or an explosive, allow //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; return;
} }