Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
7azeemm committed Dec 22, 2024
1 parent 3359ab6 commit 700b6f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 700b6f8

Please sign in to comment.