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;
import java.util.concurrent.DelayQueue; import java.util.concurrent.DelayQueue;
public enum Respawner implements Runnable { public enum Respawner implements Runnable {
Respawner; RESPAWNER;
public static BlockingQueue<Mob> respawnQueue = new DelayQueue(); public static BlockingQueue<Mob> respawnQueue = new DelayQueue();
@Override @Override
@ -32,12 +31,11 @@ public enum Respawner implements Runnable {
} }
} }
} }
public static void startRespawnThread() { public static void start() {
Thread respawnThread; Thread respawnThread;
respawnThread = new Thread(Respawner); respawnThread = new Thread(RESPAWNER);
respawnThread.setName("respawnThread"); respawnThread.setName("respawnThread");
respawnThread.start(); respawnThread.start();
} }

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

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

Loading…
Cancel
Save