From 4ab33a27bda560054eed6251dacfaa1d6363e860 Mon Sep 17 00:00:00 2001 From: Hileb <107909747+Ecdcaeb@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:25:41 +0800 Subject: [PATCH] Update LivingSetAttackTargetEvent.java --- .../event/entity/living/LivingSetAttackTargetEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/event/entity/living/LivingSetAttackTargetEvent.java b/src/main/java/net/minecraftforge/event/entity/living/LivingSetAttackTargetEvent.java index 83766cc5..e2d61aa0 100644 --- a/src/main/java/net/minecraftforge/event/entity/living/LivingSetAttackTargetEvent.java +++ b/src/main/java/net/minecraftforge/event/entity/living/LivingSetAttackTargetEvent.java @@ -61,7 +61,7 @@ public LivingSetAttackTargetEvent(EntityLivingBase entity, EntityLivingBase targ **/ public EntityLivingBase getTarget() { - return isRedirected ? redirectedTarget : originalTarget; + return isModified ? redirectedTarget : originalTarget; } /**