Prevent Passive Factions from taking Damage

This commit is contained in:
Kam committed 2026-02-08 01:46:13 -05:00
1 parent 2387ece1ff
commit d76f5d40a4
3 files changed
+8 -1

No files matched your search

@@ -678,6 +678,9 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
if (entity instanceof EntityLivingBase)
attackingEntity = (EntityLivingBase) entity;
if (faction.isPassive)
return false;
if (attackingEntity != null && attackingEntity == getOwner())
return false;
else if (attackingEntity instanceof EntityNPCInterface) {