From 633965fcd5860088f0309be8714a387a3c8bbc4a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 4 Mar 2022 21:56:54 +0100 Subject: [PATCH] Fix double countdown Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/record/LiveRecorder.java | 2 +- .../src/de/steamwar/fightsystem/record/PacketProcessor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/LiveRecorder.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/LiveRecorder.java index 8b6c735..b7531d3 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/LiveRecorder.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/LiveRecorder.java @@ -34,7 +34,7 @@ public class LiveRecorder extends StateDependent implements Recorder { private Socket socket; public LiveRecorder(){ - super(Config.LiveReplay, FightState.All); + super(Config.LiveReplay, FightState.AntiSpectate); register(); } diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java index afc3121..1e3ebc3 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/record/PacketProcessor.java @@ -480,8 +480,8 @@ public class PacketProcessor { freezer.disable(); if(!Config.replayserver()) { FightSystem.getMessage().broadcast("REPLAY_ENDS"); - FightState.setFightState(FightState.SPECTATE); } + FightState.setFightState(FightState.SPECTATE); currentProcessor = null; }