null check in mobAI
This commit is contained in:
1 parent
5f92345d3e
commit
007299eae5
1 file changed
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user