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 {
for (Mine mine : mines) { for (Mine mine : mines) {
try { 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) if (mine.wasClaimed == true) {
continue;;
if (LocalDateTime.now().getHour() == 01)
mine.wasClaimed = false;
continue;
}
// Open Errant Mines // Open Errant Mines
if (mine.getOwningGuild().isErrant()) { if (mine.getOwningGuild().isErrant()) {

Loading…
Cancel
Save