aiinfo command null check

This commit is contained in:
2023-05-28 14:02:05 -05:00
parent 33c6f1c74d
commit ff3442d9ad
+4 -1
View File
@@ -102,7 +102,10 @@ public class aiInfoCmd extends AbstractDevCmd {
for(Map.Entry<Integer,Boolean> entry : mob.playerAgroMap.entrySet()){
output += "Player ID: " + entry.getKey() + " Is Safemode: " + entry.getValue() + newline;
}
output += "Current Target: " + mob.getCombatTarget().getName() + newline;
if(mob.getCombatTarget() != null)
output += "Current Target: " + mob.getCombatTarget().getName() + newline;
else
output += "Current Target: NULL" + newline;
}
throwbackInfo(pc, output);
}