mob respawning handled in its own thread

This commit is contained in:
2023-08-01 19:19:39 -05:00
parent cdd074c0ae
commit 7f1e537975
4 changed files with 83 additions and 10 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ public class Zone extends AbstractGameObject {
private String hash;
private float worldAltitude = 0;
private float seaLevel = 0;
public static ArrayList<Mob> respawnQue = new ArrayList<>();
//public static ArrayList<Mob> respawnQue = new ArrayList<>();
public static final Set<Mob> respawnQue = Collections.newSetFromMap(new ConcurrentHashMap<>());
public static long lastRespawn = 0;
/**
* ResultSet Constructor