30 minute mine windows
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user