From 8d33e25bec5025b7251cc590c9a42b9e9e45094a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 16 Oct 2020 09:11:10 +0200 Subject: [PATCH] Fix exceptions Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/record/RecordSystem.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/record/RecordSystem.java b/FightSystem_Main/src/de/steamwar/fightsystem/record/RecordSystem.java index 15d3f00..a969de8 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/record/RecordSystem.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/record/RecordSystem.java @@ -21,6 +21,7 @@ package de.steamwar.fightsystem.record; import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.FightSystem; +import de.steamwar.fightsystem.states.FightState; import de.steamwar.sql.SteamwarUser; import net.minecraft.server.v1_15_R1.BlockPosition; import org.bukkit.Bukkit; @@ -274,6 +275,10 @@ public class RecordSystem { private static void checkWorldState(){ tick(); + + if(FightSystem.getFightState() == FightState.SPECTATE) + return; + for(TNTPrimed tnt : WORLD.getEntitiesByClass(TNTPrimed.class)){ entityMoves(tnt); entitySpeed(tnt);