Browse Source

mob AI no longer checks for no online players

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

3
src/engine/ai/MobileFSMManager.java

@ -44,7 +44,6 @@ 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();
@ -97,7 +96,7 @@ public class MobileFSMManager {
for (Mob mob : zone.zoneMobSet) { for (Mob mob : zone.zoneMobSet) {
try { try {
if (mob != null && SessionManager.getActivePlayerCharacterCount() > 0) if (mob != null)
MobileFSM.DetermineAction(mob); MobileFSM.DetermineAction(mob);
} 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);

Loading…
Cancel
Save