30 minute mine windows

This commit is contained in:
2024-03-07 21:11:28 -06:00
parent 09e57852f4
commit 60a7b395e5
2 changed files with 12 additions and 11 deletions
+6 -5
View File
@@ -230,11 +230,12 @@ public class WorldServer {
Thread hourlyJobThread = new Thread(new HourlyJobThread());
hourlyJobThread.setName("hourlyJob");
hourlyJobThread.start();
if(LocalDateTime.now().isAfter(LocalDateTime.now().withMinute(30).withSecond(0))) {
nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(1).plusHours(1);
}else{
nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(1);
}
//if(LocalDateTime.now().isAfter(LocalDateTime.now().withMinute(30).withSecond(0))) {
// nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
//}else{
// nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
//}
nextHourlyJobTime = LocalDateTime.now().plusMinutes(1);
}
if (LocalDateTime.now().isAfter(nextWareHousePushTime)) {