Skip to content

Commit

Permalink
set restartInterval here too
Browse files Browse the repository at this point in the history
  • Loading branch information
leelawd committed Apr 14, 2017
1 parent a4b74cf commit 8ac8e63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/moddedminecraft/mmcreboot/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public void onServerStart(GameStartedServerEvent event) throws IOException {
} else if(Config.restartType.equalsIgnoreCase("realtime")) {
logger.info("[MMCReboot] Using realtime restart scheduler");
scheduleRealTimeRestart();
Config.restartInterval = 0;
} else {
logger.info("[MMCReboot] No automatic restarts scheduled!");
}
Expand Down Expand Up @@ -423,6 +424,7 @@ public void cancelTasks() {
TPSRestarting = false;
usingReason = 0;
nextRealTimeRestart = 0;
Config.restartInterval = 0;
}


Expand Down

0 comments on commit 8ac8e63

Please sign in to comment.