disable hotzone system
This commit is contained in:
@@ -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{
|
//try{
|
||||||
HotzoneManager.pulse();
|
// HotzoneManager.pulse();
|
||||||
}catch(Exception e){
|
//}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)
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user