From 007299eae55d54cf30b303dc90cedeef03abcc14 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 1 Jun 2024 12:31:06 -0500 Subject: [PATCH] null check in mobAI --- src/engine/mobileAI/MobAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index b4cc9fd4..e19ece34 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -109,7 +109,7 @@ public class MobAI { return; } - if (mob.behaviourType.callsForHelp) + if (mob.behaviourType != null && mob.behaviourType.callsForHelp) mobCallForHelp(mob); if (!MovementUtilities.inRangeDropAggro(mob, target)) {