Browse Source

new mines system

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
6e7633828f
  1. 2
      src/engine/workthreads/MineThread.java

2
src/engine/workthreads/MineThread.java

@ -114,7 +114,7 @@ public class MineThread implements Runnable { @@ -114,7 +114,7 @@ public class MineThread implements Runnable {
continue;
LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1);
ZonedDateTime localizedTime = convertCSTToLocalTime(liveTime);
if(!mine.isActive) {
if(!mine.isActive && !mine.wasOpened) {
if (ZonedDateTime.now().isAfter(localizedTime)) {
mineWindowOpen(mine);
// mine has not opened today yet, and it is now after the time it should have, open the mine

Loading…
Cancel
Save