From c6af4e2c65614ff2be60129e515a3f6a741f95f7 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 23 Aug 2021 22:58:09 +0200 Subject: [PATCH] Hotfix TimeCommand Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/other/TimeCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/other/TimeCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/other/TimeCommand.java index 1944bfcc..a946a9cd 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/other/TimeCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/other/TimeCommand.java @@ -23,6 +23,7 @@ import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.linkage.LinkageType; import de.steamwar.bausystem.linkage.Linked; +import de.steamwar.command.CommandParseException; import de.steamwar.command.SWCommand; import de.steamwar.command.SWCommandUtils; import de.steamwar.command.TypeMapper; @@ -77,7 +78,7 @@ public class TimeCommand extends SWCommand { try { return Integer.parseInt(s); } catch (NumberFormatException e) { - return 0; + return null; } }, s -> tabCompletions); }