Browse Source

Cleanup work.

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
065a1c9ceb
  1. 8
      src/engine/mobileAI/Threads/Respawner.java
  2. 2
      src/engine/server/world/WorldServer.java

8
src/engine/mobileAI/Threads/Respawner.java

@ -15,8 +15,7 @@ import java.util.concurrent.BlockingQueue; @@ -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 { @@ -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();
}

2
src/engine/server/world/WorldServer.java

@ -486,7 +486,7 @@ public class WorldServer { @@ -486,7 +486,7 @@ public class WorldServer {
//intiate mob respawn thread
Logger.info("Starting Mob Respawn Thread");
Respawner.startRespawnThread();
Respawner.start();
// Run maintenance

Loading…
Cancel
Save