This commit is contained in:
Kam committed 2024-04-11 22:18:23 -04:00
1 parent 0c48bac2ef
commit 83a07d8b1d
4 files changed
+20 -6

No files matched your search

@@ -627,6 +627,8 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
public void setAttackTarget(EntityLivingBase entity){
if(entity instanceof EntityPlayer && ((EntityPlayer)entity).capabilities.disableDamage || entity != null && entity == getOwner())
return;
if(entity instanceof EntityPlayer && DBCAddon.instance.isKO(this, (EntityPlayer) entity))
return;
if (!isRemote()) {
if (getAttackTarget() != entity && entity != null) {
NpcEvent.TargetEvent event = new NpcEvent.TargetEvent(wrappedNPC,entity);