Fix: Creeper explosions don't hurt claimed animals.
This commit is contained in:
parent
0a2a4f3f71
commit
bb0f0bcf92
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user