From 0ec2add7240da777cb87f3e02a436bebd5094aff Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Mar 2025 15:43:15 -0500 Subject: [PATCH] disable hotzone system --- src/engine/gameManager/SimulationManager.java | 22 +++++++++---------- src/engine/server/world/WorldServer.java | 4 ++-- src/engine/workthreads/HourlyJobThread.java | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/engine/gameManager/SimulationManager.java b/src/engine/gameManager/SimulationManager.java index 1b5346b8..f02d8e4a 100644 --- a/src/engine/gameManager/SimulationManager.java +++ b/src/engine/gameManager/SimulationManager.java @@ -137,18 +137,18 @@ public enum SimulationManager { // Logger.error(e.getMessage()); //} - try{ - if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){ - HotzoneManager.ClearHotzone(); - } - }catch(Exception e){ - - } - try{ - HotzoneManager.pulse(); - }catch(Exception e){ + //try{ + //if(ZoneManager.hotZone != null && HotzoneManager.hotzoneMob != null && !HotzoneManager.hotzoneMob.isAlive()){ + // HotzoneManager.ClearHotzone(); + //} + //}catch(Exception e){ - } + //} + //try{ + // HotzoneManager.pulse(); + //}catch(Exception e){ +// + //} SimulationManager.executionTime = Duration.between(startTime, Instant.now()); if (executionTime.compareTo(executionMax) > 0) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 389d39dc..14e9d05e 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -534,8 +534,8 @@ public class WorldServer { printThreads(); Logger.info("Threads Running:"); - Logger.info("Starting Hotzone..."); - HotzoneManager.SelectRandomHotzone(); + //Logger.info("Starting Hotzone..."); + //HotzoneManager.SelectRandomHotzone(); return true; } diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index 24f374bc..beae6e8b 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -36,7 +36,7 @@ public class HourlyJobThread implements Runnable { ConcurrentHashMap map = DbManager.getMap(Enum.GameObjectType.City); - HotzoneManager.SelectRandomHotzone(); + //HotzoneManager.SelectRandomHotzone(); if (map != null) { for (AbstractGameObject ago : map.values()) {