Cleanup work.

This commit is contained in:
2023-10-23 00:39:12 -04:00
parent ff219ce696
commit 065a1c9ceb
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -15,8 +15,7 @@ import java.util.concurrent.BlockingQueue;
import java.util.concurrent.DelayQueue;
public enum Respawner implements Runnable {
Respawner;
RESPAWNER;
public static BlockingQueue<Mob> respawnQueue = new DelayQueue();
@Override
@@ -32,12 +31,11 @@ public enum Respawner implements Runnable {
}
}
}
public static void startRespawnThread() {
public static void start() {
Thread respawnThread;
respawnThread = new Thread(Respawner);
respawnThread = new Thread(RESPAWNER);
respawnThread.setName("respawnThread");
respawnThread.start();
}
+1 -1
View File
@@ -486,7 +486,7 @@ public class WorldServer {
//intiate mob respawn thread
Logger.info("Starting Mob Respawn Thread");
Respawner.startRespawnThread();
Respawner.start();
// Run maintenance