From 918a797f3464c3c378b1efd7b3c0832a337abf55 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 25 May 2024 22:13:14 -0500 Subject: [PATCH] timezone updated --- src/engine/objects/Mine.java | 4 ++-- src/engine/workthreads/MineThread.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 334c847c..42f96bff 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -228,10 +228,10 @@ public class Mine extends AbstractGameObject { LocalDateTime mineOpenTime;// = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); if(mine.firstThirty == true){ - mineOpenTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(0).withSecond(0).withNano(0).plusHours(5); + mineOpenTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(0).withSecond(0).withNano(0); } else{ - mineOpenTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(30).withSecond(0).withNano(0).plusHours(5); + mineOpenTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(30).withSecond(0).withNano(0); } LocalDateTime mineCloseTime = mineOpenTime.plusMinutes(30); diff --git a/src/engine/workthreads/MineThread.java b/src/engine/workthreads/MineThread.java index 9cdfd17a..1cd254d0 100644 --- a/src/engine/workthreads/MineThread.java +++ b/src/engine/workthreads/MineThread.java @@ -110,7 +110,7 @@ public class MineThread implements Runnable { Building tower = BuildingManager.getBuildingFromCache(mine.getBuildingID()); if(tower == null) continue; - LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1).plusHours(5); + LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1); if(!mine.isActive && !mine.wasOpened) { if (LocalDateTime.now().isAfter(liveTime)) { mineWindowOpen(mine);