Fixed calendar schedule calculations.

This commit is contained in:
MobiusDevelopment
2022-10-12 21:08:45 +00:00
parent 344bfbfac7
commit 9ea9a908a8
11 changed files with 52 additions and 19 deletions

View File

@@ -1258,7 +1258,7 @@ public class VanHalter extends Quest
final StatSet info = GrandBossManager.getInstance().getStatSet(29062);
final long temp = info.getLong("respawn_time") - System.currentTimeMillis();
_intervalTask = ThreadPool.schedule(new Interval(), temp);
_intervalTask = ThreadPool.schedule(new Interval(), Math.max(0, temp));
}
protected class Interval implements Runnable