mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-15 07:05:43 +01:00
Fix #1452
This commit is contained in:
parent
f8a8a19b9c
commit
9a5c6a2170
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user