guard walking bug fix

This commit is contained in:
2023-09-09 09:35:03 -05:00
parent e73b8d2826
commit d66a7049e8
2 changed files with 6 additions and 6 deletions
@@ -147,7 +147,7 @@ public class MovementUtilities {
return aiAgent.getLoc().ClosestPointOnLine(aggroTarget.getLoc(), aggroTarget.getEndLoc());
}
public static void moveToLocation(Mob agent, Vector3fImmutable newLocation, float offset) {
public static void moveToLocation(Mob agent, Vector3fImmutable newLocation, float offset, boolean isWalking) {
try {
//don't move farther than 30 units from player.
@@ -158,7 +158,7 @@ public class MovementUtilities {
agent.setFaceDir(newLoc.subtract2D(agent.getLoc()).normalize());
aiMove(agent, newLoc, false);
aiMove(agent, newLoc, isWalking);
} catch (Exception e) {
Logger.error(e.toString());
}