From 5b73ec53055f4fb70a4666350891e66bc4c8d69d Mon Sep 17 00:00:00 2001 From: jojo Date: Wed, 16 Dec 2020 09:04:31 +0100 Subject: [PATCH] Fix ignored Sleep Time --- .../src/de/steamwar/bausystem/world/ScriptListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 205e52b..f490d35 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -71,6 +71,7 @@ public class ScriptListener implements Listener { String sleepTimeString = command.substring(5).trim(); int sleepTime = 1; try { + sleepTime = Integer.parseInt(sleepTimeString); } catch (NumberFormatException e) { // Ignored }