From abb7df4e5c201ac2942128da27ad597428ac72d5 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 16 Mar 2024 20:38:11 +0100 Subject: [PATCH] Fix Entity HullHider for Referee Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/HullHider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/HullHider.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/HullHider.java index 286490c..4daf4ad 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/HullHider.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/HullHider.java @@ -119,7 +119,7 @@ public class HullHider implements Listener { FightTeam team = Fight.getPlayerTeam(player); FightPlayer fp = Fight.getFightPlayer(player); for(Map.Entry hull : hullMap.entrySet()) { - if(hull.getKey() == team || (fp != null && fp.canEntern())) { + if(Config.isReferee(player) || hull.getKey() == team || (fp != null && fp.canEntern())) { hull.getValue().removePlayer(player, true); } else { hull.getValue().addPlayer(player);