diff --git a/src/engine/mobileAI/Threads/Respawner.java b/src/engine/mobileAI/Threads/Respawner.java index 1da3778a..9aaa477f 100644 --- a/src/engine/mobileAI/Threads/Respawner.java +++ b/src/engine/mobileAI/Threads/Respawner.java @@ -15,8 +15,7 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.DelayQueue; public enum Respawner implements Runnable { - Respawner; - + RESPAWNER; public static BlockingQueue 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(); } diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index f1cb0d0c..39de164a 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -486,7 +486,7 @@ public class WorldServer { //intiate mob respawn thread Logger.info("Starting Mob Respawn Thread"); - Respawner.startRespawnThread(); + Respawner.start(); // Run maintenance