Auditmobs hashset for to deleted as it was being populated once a second but never used.

This commit is contained in:
2022-06-03 12:28:56 -04:00
parent 43c32ce329
commit 59cebf9e9b
+1 -6
View File
@@ -76,16 +76,11 @@ public class MobileFSMManager {
ThreadUtils.sleep(1); ThreadUtils.sleep(1);
if (System.currentTimeMillis() > mobPulse) { if (System.currentTimeMillis() > mobPulse) {
HashSet<Integer> auditMobs = new HashSet<Integer>();
for (Zone zone : ZoneManager.getAllZones()) { for (Zone zone : ZoneManager.getAllZones()) {
for (Mob mob : zone.zoneMobSet) { for (Mob mob : zone.zoneMobSet) {
if (auditMobs.contains(mob.getObjectUUID()))
continue;
auditMobs.add(mob.getObjectUUID());
try { try {
if (mob != null) if (mob != null)
MobileFSM.run(mob); MobileFSM.run(mob);