From e468feb1fc8efc0ff890388f8a26e292b59a88cc Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 5 Mar 2022 12:47:21 +0100 Subject: [PATCH] Force recording saving post recording flush and close Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/FightStatistics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java index bd530bd..22c9891 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java @@ -58,7 +58,7 @@ public class FightStatistics { public FightStatistics() { new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Running, this::enable); new OneShotStateDependent(ArenaMode.Event, FightState.Spectate, this::setEventResult); - new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Spectate, this::disable); + new OneShotStateDependent(ArenaMode.SeriousFight, FightState.Spectate, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::disable)); } private void enable(){