yet another attempt at mines

This commit is contained in:
2024-05-26 20:05:28 -05:00
parent 917fddceeb
commit a9f006936b
+1 -1
View File
@@ -116,7 +116,7 @@ public class MineThread implements Runnable {
//check if this mine needs to open
LocalDateTime openTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).withSecond(0).withNano(0);
if(currentTime.isAfter(openTime) && !mine.wasOpened){
if(currentTime.isAfter(openTime) && currentTime.isBefore(openTime.plusMinutes(30)) && !mine.wasOpened){
mineWindowOpen(mine); //hour and minute match, time to open the window
ChatManager.chatSystemChannel(mine.getParentZone().getName() + " " + mine.getMineType() + "MINE is now vulnerable to attack!");
continue;