From a9f006936b552366236528c8c709c959bf949599 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 26 May 2024 20:05:28 -0500 Subject: [PATCH] yet another attempt at mines --- src/engine/workthreads/MineThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/workthreads/MineThread.java b/src/engine/workthreads/MineThread.java index 84db8207..ea0e3bf6 100644 --- a/src/engine/workthreads/MineThread.java +++ b/src/engine/workthreads/MineThread.java @@ -116,7 +116,7 @@ public class MineThread implements Runnable { //check if this mine needs to open LocalDateTime openTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).withSecond(0).withNano(0); - if(currentTime.isAfter(openTime) && !mine.wasOpened){ + if(currentTime.isAfter(openTime) && currentTime.isBefore(openTime.plusMinutes(30)) && !mine.wasOpened){ mineWindowOpen(mine); //hour and minute match, time to open the window ChatManager.chatSystemChannel(mine.getParentZone().getName() + " " + mine.getMineType() + "MINE is now vulnerable to attack!"); continue;