respawn que null check

This commit is contained in:
2023-08-01 18:56:56 -05:00
parent bab033be2d
commit cdd074c0ae
+5 -3
View File
@@ -95,9 +95,11 @@ public class MobileFSMManager {
for (Zone zone : ZoneManager.getAllZones()) { for (Zone zone : ZoneManager.getAllZones()) {
if(zone.respawnQue.size() > 0 && zone.lastRespawn + 100 < System.currentTimeMillis()){ if(zone.respawnQue.size() > 0 && zone.lastRespawn + 100 < System.currentTimeMillis()){
zone.respawnQue.get(0).respawn(); if(zone.respawnQue.get(0) != null) {
zone.respawnQue.remove(0); zone.respawnQue.get(0).respawn();
zone.lastRespawn = System.currentTimeMillis(); zone.respawnQue.remove(0);
zone.lastRespawn = System.currentTimeMillis();
}
} }
for (Mob mob : zone.zoneMobSet) { for (Mob mob : zone.zoneMobSet) {