forked from MagicBane/Server
Class cleanup
This commit is contained in:
@@ -38,7 +38,7 @@ public enum ForgeManager implements Runnable {
|
||||
//
|
||||
// Replaces garbage code that looked as if written by a mental patient with face boils.
|
||||
//
|
||||
// @TODO Reuse same set of virtual items for each workOrder cycle.
|
||||
// @TODO Reuse same set of virtual items for all workOrder cycles.
|
||||
|
||||
FORGE_MANAGER;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import engine.math.Vector3fImmutable;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.DispatchChannel;
|
||||
import engine.mobileAI.Threads.MobAIThread;
|
||||
import engine.mobileAI.Threads.Respawner;
|
||||
import engine.mobileAI.Threads.ReSpawner;
|
||||
import engine.mobileAI.utilities.MovementUtilities;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.msg.PerformActionMsg;
|
||||
@@ -740,7 +740,7 @@ public class MobAI {
|
||||
}
|
||||
} else if (System.currentTimeMillis() > aiAgent.deathTime + (aiAgent.spawnDelay * 1000L)) {
|
||||
aiAgent.respawnTime = aiAgent.deathTime + (aiAgent.spawnDelay * 1000L);
|
||||
Respawner.respawnQueue.put(aiAgent);
|
||||
ReSpawner.respawnQueue.put(aiAgent);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Logger.info(aiAgent.getObjectUUID() + " " + aiAgent.getName() + " Failed At: CheckForRespawn" + " " + e.getMessage());
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ import org.pmw.tinylog.Logger;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.DelayQueue;
|
||||
|
||||
public enum Respawner implements Runnable {
|
||||
public enum ReSpawner implements Runnable {
|
||||
|
||||
// MB Dev Notes:
|
||||
//
|
||||
@@ -25,7 +25,7 @@ public enum Respawner implements Runnable {
|
||||
|
||||
RESPAWNER;
|
||||
|
||||
public static BlockingQueue<Mob> respawnQueue = new DelayQueue();
|
||||
public static final BlockingQueue<Mob> respawnQueue = new DelayQueue<>();
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -24,7 +24,7 @@ import engine.mbEnums.DispatchChannel;
|
||||
import engine.mbEnums.MinionType;
|
||||
import engine.mbEnums.SupportMsgType;
|
||||
import engine.mobileAI.Threads.MobAIThread;
|
||||
import engine.mobileAI.Threads.Respawner;
|
||||
import engine.mobileAI.Threads.ReSpawner;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.Network;
|
||||
import engine.net.Protocol;
|
||||
@@ -455,7 +455,7 @@ public class WorldServer {
|
||||
|
||||
//intiate mob respawn thread
|
||||
Logger.info("Starting Mob Respawn Thread");
|
||||
Respawner.start();
|
||||
ReSpawner.start();
|
||||
|
||||
Logger.info("Loading effect cost maps");
|
||||
DbManager.EffectsResourceCostsQueries.LOAD_ALL_COSTMAPS();
|
||||
|
||||
Reference in New Issue
Block a user