From c14cc98ca204677049f3bfe8b001aaa6bee27e98 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 8 Jun 2024 18:58:46 -0500 Subject: [PATCH] mines reset claimability at 3am CST --- src/engine/workthreads/HourlyJobThread.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index 866c1000..22930324 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -94,12 +94,11 @@ public class HourlyJobThread implements Runnable { // This will reset at 1am after the last mine // window closes. - if (LocalDateTime.now().getHour() == MINE_LATE_WINDOW + 1) { + if (LocalDateTime.now().getHour() == 3) { for (Mine mine : Mine.getMines()) { - - if (mine.wasClaimed == true) - mine.wasClaimed = false; + mine.wasClaimed = false; + mine.hasProduced = false; } }