From 72f3aed8ba3d685b48da5950a447ad696731f94a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 7 Mar 2022 11:25:01 +0100 Subject: [PATCH] Fix entity destruction Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightWorld.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightWorld.java index 43cad3f..6afe6a3 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightWorld.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightWorld.java @@ -65,7 +65,7 @@ public class FightWorld extends StateDependent { public static void resetWorld(){ for(Entity entity : world.getEntities()){ - if(entity.getType() != EntityType.PLAYER){ + if(entity.getType() != EntityType.PLAYER && (!Config.ArenaLeaveable || Config.ArenaRegion.inRegion(entity.getLocation()))) { entity.remove(); } }