diff --git a/src/main/java/de/teamlapen/vampirism/entity/hunter/BasicHunterEntity.java b/src/main/java/de/teamlapen/vampirism/entity/hunter/BasicHunterEntity.java index ad45e5b290..ec69086d35 100644 --- a/src/main/java/de/teamlapen/vampirism/entity/hunter/BasicHunterEntity.java +++ b/src/main/java/de/teamlapen/vampirism/entity/hunter/BasicHunterEntity.java @@ -7,6 +7,7 @@ import de.teamlapen.vampirism.api.entity.actions.EntityActionTier; import de.teamlapen.vampirism.api.entity.actions.IEntityActionUser; import de.teamlapen.vampirism.api.entity.hunter.IBasicHunter; +import de.teamlapen.vampirism.api.entity.hunter.IHunterMob; import de.teamlapen.vampirism.api.entity.hunter.IVampirismCrossbowUser; import de.teamlapen.vampirism.api.items.IVampirismCrossbow; import de.teamlapen.vampirism.api.world.ICaptureAttributes; @@ -507,7 +508,7 @@ protected void registerGoals() { this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, VampireBaseEntity.class, 17F)); this.goalSelector.addGoal(8, new RandomLookAroundGoal(this)); - this.targetSelector.addGoal(1, new HurtByTargetGoal(this)); + this.targetSelector.addGoal(1, new HurtByTargetGoal(this, IHunterMob.class)); this.targetSelector.addGoal(2, new AttackVillageGoal<>(this)); this.targetSelector.addGoal(2, new DefendVillageGoal<>(this));//Should automatically be mutually exclusive with attack village this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, Player.class, 5, true, false, VampirismAPI.factionRegistry().getPredicate(getFaction(), true, false, false, false, null)));