|
|
|
@ -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
|
|
|
|
|