From 61895377d1f1ed09016993e778be21c18ac18dac Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 16 Apr 2023 16:56:05 +0200 Subject: [PATCH] Hotfix RegionedBossbar Signed-off-by: yoyosource --- .../steamwar/bausystem/utils/bossbar/RegionedBossbar.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/utils/bossbar/RegionedBossbar.java b/BauSystem_Main/src/de/steamwar/bausystem/utils/bossbar/RegionedBossbar.java index 4d922143..5fb1cc99 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/utils/bossbar/RegionedBossbar.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/utils/bossbar/RegionedBossbar.java @@ -135,8 +135,10 @@ public class RegionedBossbar implements BauSystemBossbar, Listener { @Override public void cleanup() { - bossBar.removeAll(); - bossBar = null; + if (bossBar != null) { + bossBar.removeAll(); + bossBar = null; + } region = null; player = null;