From 73da47ad18679ad24a73d3d29512f3950b808304 Mon Sep 17 00:00:00 2001 From: dbrownidau Date: Mon, 10 Feb 2020 14:09:56 +1100 Subject: [PATCH] Move shutdown call outside for loop. --- 2006Redone Server/src/main/java/com/rebotted/GameEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2006Redone Server/src/main/java/com/rebotted/GameEngine.java b/2006Redone Server/src/main/java/com/rebotted/GameEngine.java index 2d8b215d..ca6fa259 100644 --- a/2006Redone Server/src/main/java/com/rebotted/GameEngine.java +++ b/2006Redone Server/src/main/java/com/rebotted/GameEngine.java @@ -207,8 +207,8 @@ public class GameEngine { } PlayerSave.saveGame((Client) p); System.out.println("Saved game for " + p.playerName + "."); - scheduler.shutdown(); // Kills the tickloop thread if Exception is thrown. } + scheduler.shutdown(); // Kills the tickloop thread if Exception is thrown. } } }, 0, GameConstants.CYCLE_TIME, TimeUnit.MILLISECONDS);