Browse Source

new mines system

lakebane-master
FatBoy-DOTC 6 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 {
continue; continue;
LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1); LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1);
ZonedDateTime localizedTime = convertCSTToLocalTime(liveTime); ZonedDateTime localizedTime = convertCSTToLocalTime(liveTime);
if(!mine.isActive) { if(!mine.isActive && !mine.wasOpened) {
if (ZonedDateTime.now().isAfter(localizedTime)) { if (ZonedDateTime.now().isAfter(localizedTime)) {
mineWindowOpen(mine); mineWindowOpen(mine);
// mine has not opened today yet, and it is now after the time it should have, open the mine // mine has not opened today yet, and it is now after the time it should have, open the mine

Loading…
Cancel
Save