From 0edbe4be94627b7b98f4e53d2fb83159a3c1aa7e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 4 Jan 2024 23:55:31 +0100 Subject: [PATCH] Fix replay IllegalStateException Signed-off-by: Lixfel --- FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java index 57cfa29..ab7cb7f 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/Hull.java @@ -201,7 +201,7 @@ public class Hull { while(rit.hasNext()) { REntity entity = rit.next(); if(uncoveredSet.contains(new IntVector(new Location(Config.world, entity.getX(), entity.getY(), entity.getZ())))) { //TODO more precise - it.remove(); + rit.remove(); entity.hide(false); } }