SteamWar/FightSystem
Archiviert
13
1

Fix replay creation during replay
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-20 17:26:08 +01:00
Ursprung e425c29685
Commit 9575e5c907

Datei anzeigen

@ -19,7 +19,7 @@
package de.steamwar.fightsystem.record; package de.steamwar.fightsystem.record;
import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.Config;
import de.steamwar.fightsystem.states.FightState; import de.steamwar.fightsystem.states.FightState;
import de.steamwar.fightsystem.states.StateDependent; import de.steamwar.fightsystem.states.StateDependent;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -37,7 +37,7 @@ public class FileRecorder extends StateDependent implements Recorder {
} }
public FileRecorder(){ public FileRecorder(){
super(ArenaMode.AntiReplay, FightState.Recording); super(Config.ReplayID == 0, FightState.Recording);
register(); register();
} }