From 6ac22e36a136c9e86a6dd7abb1039c6a99d1da2c Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 16 Sep 2024 19:29:00 +0100 Subject: [PATCH] Fixed mobs getting stuck targetting an invalid entity. Fixes #414 --- .../com/minelittlepony/unicopia/entity/ai/BreakHeartGoal.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/ai/BreakHeartGoal.java b/src/main/java/com/minelittlepony/unicopia/entity/ai/BreakHeartGoal.java index 38328a96..a37eff54 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/ai/BreakHeartGoal.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/ai/BreakHeartGoal.java @@ -49,6 +49,7 @@ public class BreakHeartGoal extends Goal { public void stop() { targetter.stop(); mob.getNavigation().stop(); + mob.setTarget(null); } @Override