From 32225177c42a25f32e69d46e342ea81dfed91a7f Mon Sep 17 00:00:00 2001 From: direwolf20 <39863894+Direwolf20-MC@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:26:15 -0500 Subject: [PATCH] Logic Derp --- .../justdirethings/common/entities/JustDireArrow.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/direwolf20/justdirethings/common/entities/JustDireArrow.java b/src/main/java/com/direwolf20/justdirethings/common/entities/JustDireArrow.java index a3cb4d94..7acba529 100644 --- a/src/main/java/com/direwolf20/justdirethings/common/entities/JustDireArrow.java +++ b/src/main/java/com/direwolf20/justdirethings/common/entities/JustDireArrow.java @@ -176,10 +176,14 @@ protected void defineSynchedData(SynchedEntityData.Builder p_326324_) { } public boolean isHostileEntity(LivingEntity entity) { - if (getTargetAngry()) return true; + if (getTargetAngry()) + return true; if (entity instanceof NeutralMob) { - setTargetAngry(true); - return ((NeutralMob) entity).isAngry(); + if (((NeutralMob) entity).isAngry()) { + setTargetAngry(true); + return true; + } + return false; } if (entity instanceof Enemy) { return true;