30 minute mine windows

This commit is contained in:
2024-03-07 20:04:58 -06:00
parent 24bc0097be
commit 9107540212
3 changed files with 49 additions and 21 deletions
+2 -2
View File
@@ -231,9 +231,9 @@ public class WorldServer {
hourlyJobThread.setName("hourlyJob");
hourlyJobThread.start();
if(LocalDateTime.now().isAfter(LocalDateTime.now().withMinute(30).withSecond(0))) {
nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(1).plusHours(1);
}else{
nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(1);
}
}