From 21cf22f4cf998e44a87f1589b8c397e0cc104a94 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Jan 2023 14:28:29 -0500 Subject: [PATCH] Sanity check added for slider. --- src/engine/net/client/handlers/MineWindowChangeHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/net/client/handlers/MineWindowChangeHandler.java b/src/engine/net/client/handlers/MineWindowChangeHandler.java index e4ee4df7..684b8e96 100644 --- a/src/engine/net/client/handlers/MineWindowChangeHandler.java +++ b/src/engine/net/client/handlers/MineWindowChangeHandler.java @@ -76,6 +76,11 @@ public class MineWindowChangeHandler extends AbstractClientMsgHandler { newMineTime = mineWindowChangeMsg.getTime(); + // Sanity check for possible slider value + + if (newMineTime == 24) + newMineTime = 0; + // Enforce 15hr restriction between WOO edits if (LocalDateTime.now().isBefore(mineGuild.lastWooEditTime.plusHours(14))) {