Browse Source

Mine cycle is reset at 01:00hrs.

master
MagicBot 2 years ago
parent
commit
889e969c44
  1. 13
      src/engine/workthreads/HourlyJobThread.java

13
src/engine/workthreads/HourlyJobThread.java

@ -103,11 +103,18 @@ public class HourlyJobThread implements Runnable { @@ -103,11 +103,18 @@ public class HourlyJobThread implements Runnable {
for (Mine mine : mines) {
try {
// Mines can only be claimed once a cycle
// Mines can only be claimed once a cycle.
// The cycle resets at 01:00hrs after the
// Last mine window closes.
if (mine.wasClaimed == true)
continue;;
if (mine.wasClaimed == true) {
if (LocalDateTime.now().getHour() == 01)
mine.wasClaimed = false;
continue;
}
// Open Errant Mines
if (mine.getOwningGuild().isErrant()) {

Loading…
Cancel
Save