Fixed mobs getting stuck targetting an invalid entity. Fixes #414

This commit is contained in:
Sollace 2024-09-16 19:29:00 +01:00
parent 1c52237568
commit 6ac22e36a1
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -49,6 +49,7 @@ public class BreakHeartGoal extends Goal {
public void stop() {
targetter.stop();
mob.getNavigation().stop();
mob.setTarget(null);
}
@Override