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;
@ -27,7 +27,7 @@ import org.bukkit.Bukkit;
import java.io.*; import java.io.*;
import java.util.zip.GZIPOutputStream; import java.util.zip.GZIPOutputStream;
public class FileRecorder extends StateDependent implements Recorder { public class FileRecorder extends StateDependent implements Recorder {
private static final File file = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "recording.recording"); private static final File file = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "recording.recording");
private DataOutputStream outputStream; private DataOutputStream outputStream;
@ -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();
} }