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