Forgot to check if the fox was tamed too

This commit is contained in:
Checkium Folf 2020-02-22 15:10:24 +00:00
parent 5ac36cb9f2
commit 80200cf415
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class EntityTamableFox extends EntityFox {
// Avoid human only if not tamed // Avoid human only if not tamed
this.goalSelector.a(5, new PathfinderGoalAvoidTarget(this, EntityHuman.class, 16.0F, 1.6D, 1.4D, (entityliving) -> { this.goalSelector.a(5, new PathfinderGoalAvoidTarget(this, EntityHuman.class, 16.0F, 1.6D, 1.4D, (entityliving) -> {
return bD.test((EntityLiving) entityliving); return !isTamed() && bD.test((EntityLiving) entityliving);
})); }));
// Avoid wolf if it is not tamed // Avoid wolf if it is not tamed