From 78f750355817c84119f2a154d2c6823ec18f9406 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 21 Jan 2023 08:28:16 -0500 Subject: [PATCH] Changing your WOO outside the NA window is allowed. --- src/engine/net/client/handlers/MineWindowChangeHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/MineWindowChangeHandler.java b/src/engine/net/client/handlers/MineWindowChangeHandler.java index f6e231f5..a142bec5 100644 --- a/src/engine/net/client/handlers/MineWindowChangeHandler.java +++ b/src/engine/net/client/handlers/MineWindowChangeHandler.java @@ -96,7 +96,11 @@ public class MineWindowChangeHandler extends AbstractClientMsgHandler { return true; } - if (newMineTime <= LocalDateTime.now().getHour()) { + // Cannot set a time to a window that has not closed if mines are currently open. + + if (LocalDateTime.now().getHour() >= MBServerStatics.MINE_EARLY_WINDOW && + newMineTime <= LocalDateTime.now().getHour() && + LocalDateTime.now().getHour() != MBServerStatics.MINE_LATE_WINDOW) { ErrorPopupMsg.sendErrorMsg(playerCharacter, "You must first wait for that mine window to close."); return true; }