null check in mobAI

This commit is contained in:
2024-06-01 12:31:06 -05:00
parent 5f92345d3e
commit 007299eae5
+1 -1
View File
@@ -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)) {