uniform disc dropper respawns
This commit is contained in:
1 parent
13a4ba6e0e
commit
b2a3eb3e6e
4 files changed
+17
-2
No files matched your search
@@ -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