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 82aa1bc5af
commit 8a860178f6
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