This commit is contained in:
fullwall 2018-03-24 15:33:41 +08:00
parent f8a8a19b9c
commit 9a5c6a2170
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ public class WolfController extends MobEntityController {
@Override
public boolean setGoalTarget(EntityLiving entityliving, EntityTargetEvent.TargetReason reason, boolean fire) {
return npc == null ? super.setGoalTarget(entityliving, reason, fire) : false;
return npc == null || this.equals(entityliving) ? super.setGoalTarget(entityliving, reason, fire) : false;
}
}

View File

@ -196,7 +196,7 @@ public class WolfController extends MobEntityController {
@Override
public boolean setGoalTarget(EntityLiving entityliving, EntityTargetEvent.TargetReason reason, boolean fire) {
return npc == null ? super.setGoalTarget(entityliving, reason, fire) : false;
return npc == null || this.equals(entityliving) ? super.setGoalTarget(entityliving, reason, fire) : false;
}
}

View File

@ -199,7 +199,7 @@ public class WolfController extends MobEntityController {
@Override
public boolean setGoalTarget(EntityLiving entityliving, EntityTargetEvent.TargetReason reason, boolean fire) {
return npc == null ? super.setGoalTarget(entityliving, reason, fire) : false;
return npc == null || this.equals(entityliving) ? super.setGoalTarget(entityliving, reason, fire) : false;
}
}