Browse Source

disable hotzone system

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
0ec2add724
  1. 22
      src/engine/gameManager/SimulationManager.java
  2. 4
      src/engine/server/world/WorldServer.java
  3. 2
      src/engine/workthreads/HourlyJobThread.java

22
src/engine/gameManager/SimulationManager.java

@ -137,18 +137,18 @@ public enum SimulationManager {
// Logger.error(e.getMessage()); // Logger.error(e.getMessage());
//} //}
try{ //try{
if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){ //if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){
HotzoneManager.ClearHotzone(); // HotzoneManager.ClearHotzone();
} //}
}catch(Exception e){ //}catch(Exception e){
}
try{
HotzoneManager.pulse();
}catch(Exception e){
} //}
//try{
// HotzoneManager.pulse();
//}catch(Exception e){
//
//}
SimulationManager.executionTime = Duration.between(startTime, Instant.now()); SimulationManager.executionTime = Duration.between(startTime, Instant.now());
if (executionTime.compareTo(executionMax) > 0) if (executionTime.compareTo(executionMax) > 0)

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

@ -534,8 +534,8 @@ public class WorldServer {
printThreads(); printThreads();
Logger.info("Threads Running:"); Logger.info("Threads Running:");
Logger.info("Starting Hotzone..."); //Logger.info("Starting Hotzone...");
HotzoneManager.SelectRandomHotzone(); //HotzoneManager.SelectRandomHotzone();
return true; return true;
} }

2
src/engine/workthreads/HourlyJobThread.java

@ -36,7 +36,7 @@ public class HourlyJobThread implements Runnable {
ConcurrentHashMap<Integer, AbstractGameObject> map = DbManager.getMap(Enum.GameObjectType.City); ConcurrentHashMap<Integer, AbstractGameObject> map = DbManager.getMap(Enum.GameObjectType.City);
HotzoneManager.SelectRandomHotzone(); //HotzoneManager.SelectRandomHotzone();
if (map != null) { if (map != null) {
for (AbstractGameObject ago : map.values()) { for (AbstractGameObject ago : map.values()) {

Loading…
Cancel
Save