|
|
|
@ -247,14 +247,16 @@ public class WorldServer {
@@ -247,14 +247,16 @@ public class WorldServer {
|
|
|
|
|
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch(LocalDateTime.now().getHour()){ |
|
|
|
|
|
|
|
|
|
if(LocalDateTime.now().isAfter(nextDiscSpawn)) { |
|
|
|
|
switch (LocalDateTime.now().getHour()) { |
|
|
|
|
case 0: |
|
|
|
|
case 4: |
|
|
|
|
case 8: |
|
|
|
|
case 12: |
|
|
|
|
case 16: |
|
|
|
|
case 20: |
|
|
|
|
for(Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
for (Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
if (!dropper.isAlive()) { |
|
|
|
|
Zone.respawnQue.add(dropper); |
|
|
|
|
} |
|
|
|
@ -262,6 +264,8 @@ public class WorldServer {
@@ -262,6 +264,8 @@ public class WorldServer {
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
nextDiscSpawn = nextDiscSpawn.plusHours(1); |
|
|
|
|
} |
|
|
|
|
ThreadUtils.sleep(50); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|