SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Fix start listening on Spectateserver' (#292) from fix_replayserver into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #292
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-07 10:25:38 +02:00
Commit c4d36e9be8

Datei anzeigen

@ -29,8 +29,14 @@ import java.util.zip.GZIPInputStream;
public class FileSource extends PacketSource { public class FileSource extends PacketSource {
public static void startReplay() { 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; return;
}
InputStream input = de.steamwar.sql.Fight.getReplay(Config.ReplayID); InputStream input = de.steamwar.sql.Fight.getReplay(Config.ReplayID);
try { try {