From 700b6f83bf1c48362fbca087ae62223f7ce8ccaa Mon Sep 17 00:00:00 2001 From: 7azeemm Date: Sun, 22 Dec 2024 19:50:51 +0100 Subject: [PATCH] null check --- .../de/hysky/skyblocker/skyblock/slayers/SlayerManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/slayers/SlayerManager.java b/src/main/java/de/hysky/skyblocker/skyblock/slayers/SlayerManager.java index c1177a1ae8..7e1fbf7311 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/slayers/SlayerManager.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/slayers/SlayerManager.java @@ -176,7 +176,7 @@ public static void checkSlayerBoss(ArmorStandEntity armorStand) { for (Entity otherArmorStands : getEntityArmorStands(armorStand, 1.5f)) { Matcher matcher = SLAYER_PATTERN.matcher(otherArmorStands.getName().getString()); if (matcher.find()) { - if (bossFight.boss == null) { + if (bossFight != null && bossFight.boss == null) { bossFight.findBoss((ArmorStandEntity) otherArmorStands); return; }