From e7d5cee75a47b816f562a3eab9a527b028a03046 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Mar 2023 21:20:52 +0100 Subject: [PATCH] Hotfix NPE Signed-off-by: yoyosource --- .../bausystem/features/killchecker/KillcheckerVisualizer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/killchecker/KillcheckerVisualizer.java b/BauSystem_Main/src/de/steamwar/bausystem/features/killchecker/KillcheckerVisualizer.java index 3b66aae6..2d876ebe 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/killchecker/KillcheckerVisualizer.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/killchecker/KillcheckerVisualizer.java @@ -369,7 +369,9 @@ public class KillcheckerVisualizer { public boolean hide(Player player) { outline.removePlayer(player); - inner.removePlayer(player); + if (areaPlayers.contains(player)) { + inner.removePlayer(player); + } players.remove(player); areaPlayers.remove(player); bossBars.remove(player).removePlayer(player);