|
|
|
@ -257,11 +257,15 @@ public class WorldServer {
@@ -257,11 +257,15 @@ public class WorldServer {
|
|
|
|
|
|
|
|
|
|
if (LocalDateTime.now().isAfter(nextDiscSpawn)) { |
|
|
|
|
for(Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
if(dropper.isAlive() == false){ |
|
|
|
|
if (dropper.discDelay == 6 && (LocalDateTime.now().getHour() == 6 || LocalDateTime.now().getHour() == 12 || LocalDateTime.now().getHour() == 18 || LocalDateTime.now().getHour() == 0)) { |
|
|
|
|
if (!dropper.isAlive()) { |
|
|
|
|
dropper.respawn(); |
|
|
|
|
} |
|
|
|
|
} else if (!dropper.isAlive()) { |
|
|
|
|
dropper.respawn(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(6).withMinute(0).withSecond(0); |
|
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(1).withMinute(0).withSecond(0); |
|
|
|
|
} |
|
|
|
|
ThreadUtils.sleep(50); |
|
|
|
|
} |
|
|
|
|