Browse Source

Sanity check added for slider.

master
MagicBot 2 years ago
parent
commit
21cf22f4cf
  1. 5
      src/engine/net/client/handlers/MineWindowChangeHandler.java

5
src/engine/net/client/handlers/MineWindowChangeHandler.java

@ -76,6 +76,11 @@ public class MineWindowChangeHandler extends AbstractClientMsgHandler { @@ -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))) {

Loading…
Cancel
Save