Skip to content

Commit 5d7813b

Browse files
committed
Fix watchdog crash on server start
1 parent 3a190a5 commit 5d7813b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/src/main/java/org/embeddedt/modernfix/world/IntegratedWatchdog.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public void run() {
3737
if(!lastTickStart.isPresent()) {
3838
return;
3939
}
40+
if(lastTickStart.getAsLong() < 0) {
41+
continue;
42+
}
4043
long curTime = Util.getMillis();
4144
long delta = curTime - lastTickStart.getAsLong();
4245
if(delta > MAX_TICK_DELTA) {

0 commit comments

Comments
 (0)