Browse Source

mobs update location after moving to patrol point index

master
FatBoy-DOTC 1 year ago
parent
commit
f94e66bf74
  1. 1
      src/engine/ai/MobileFSMManager.java

1
src/engine/ai/MobileFSMManager.java

@ -44,6 +44,7 @@ public class MobileFSMManager {
try { try {
MovementManager.translocate(mob,mob.patrolPoints.get(0), null); MovementManager.translocate(mob,mob.patrolPoints.get(0), null);
mob.updateLocation();
} catch (Exception e) { } catch (Exception e) {
Logger.error("Mob: " + mob.getName() + " UUID: " + mob.getObjectUUID() + " ERROR: " + e); Logger.error("Mob: " + mob.getName() + " UUID: " + mob.getObjectUUID() + " ERROR: " + e);
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save