From a9766d02658ccea901b18d35fe4b52be76cd9374 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 7 Oct 2021 09:56:34 +0200 Subject: [PATCH] Fix start listening on Spectateserver Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/record/FileSource.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/FileSource.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/FileSource.java index c283504..86c52ad 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/FileSource.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/FileSource.java @@ -29,8 +29,14 @@ import java.util.zip.GZIPInputStream; public class FileSource extends PacketSource { public static void startReplay() { - if(Config.replayserver()) + if(Config.replayserver()) { + try { + new LiveServer(); + } catch (IOException e) { + throw new SecurityException("Could not start replayserver", e); + } return; + } InputStream input = de.steamwar.sql.Fight.getReplay(Config.ReplayID); try {