uniform disc dropper respawns
This commit is contained in:
@@ -203,6 +203,7 @@ public class WorldServer {
|
||||
LocalDateTime nextFlashTrashCheckTime = LocalDateTime.now();
|
||||
LocalDateTime nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
|
||||
LocalDateTime nextWareHousePushTime = LocalDateTime.now();
|
||||
LocalDateTime nextDiscSpawn = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
|
||||
|
||||
// Begin execution of main game loop
|
||||
|
||||
@@ -245,6 +246,14 @@ public class WorldServer {
|
||||
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15);
|
||||
}
|
||||
|
||||
if (LocalDateTime.now().isAfter(nextDiscSpawn)) {
|
||||
for(Mob dropper : Mob.disciplineDroppers){
|
||||
if(dropper.isAlive() == false){
|
||||
dropper.respawn();
|
||||
}
|
||||
}
|
||||
nextDiscSpawn = LocalDateTime.now().plusHours(3).withMinute(0).withSecond(0);
|
||||
}
|
||||
ThreadUtils.sleep(50);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user