hard set mine windows

This commit is contained in:
2024-02-29 20:48:11 -06:00
parent d6dd61e9c5
commit 9ee3b9d7bb
2 changed files with 73 additions and 3 deletions
+3 -2
View File
@@ -80,8 +80,9 @@ public class HourlyJobThread implements Runnable {
ArrayList<Mine> mines = Mine.getMines();
for (Mine mine : mines) {
if (LocalDateTime.now().getHour() == 1400) {
if (LocalDateTime.now().getHour() == 1) {
mine.wasClaimed = false;
mine.hasProduced = false;
}
try {
@@ -95,7 +96,7 @@ public class HourlyJobThread implements Runnable {
// Open Mines owned by nations having their WOO
// set to the current mine window.
if (mine.getOwningGuild().getNation().getMineTime() ==
if (mine.liveTime ==
LocalDateTime.now().getHour() && mine.wasClaimed == false) {
HourlyJobThread.mineWindowOpen(mine);
continue;