forked from MagicBane/Server
Cleanup work.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ public class WorldServer {
|
||||
|
||||
//intiate mob respawn thread
|
||||
Logger.info("Starting Mob Respawn Thread");
|
||||
Respawner.startRespawnThread();
|
||||
Respawner.start();
|
||||
|
||||
// Run maintenance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user