Fix mobs ignore player (#986)
This commit is contained in:
parent
216cf6b404
commit
ef1854ccb2
@ -137,7 +137,7 @@ public abstract class MobMixin extends LivingEntityMixin implements MobEntityBri
|
||||
}
|
||||
}
|
||||
var changeTargetEvent = ForgeHooks.onLivingChangeTarget((Mob) (Object) this, livingEntity, LivingChangeTargetEvent.LivingTargetType.MOB_TARGET);
|
||||
if (changeTargetEvent.isCanceled()) {
|
||||
if (!changeTargetEvent.isCanceled()) {
|
||||
this.target = changeTargetEvent.getNewTarget();
|
||||
// noinspection removal
|
||||
ForgeHooks.onLivingSetAttackTarget((Mob) (Object) this, this.target);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user