Browse Source

aiinfo command null check

master
FatBoy-DOTC 1 year ago
parent
commit
ff3442d9ad
  1. 3
      src/engine/devcmd/cmds/aiInfoCmd.java

3
src/engine/devcmd/cmds/aiInfoCmd.java

@ -102,7 +102,10 @@ public class aiInfoCmd extends AbstractDevCmd { @@ -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;
}
if(mob.getCombatTarget() != null)
output += "Current Target: " + mob.getCombatTarget().getName() + newline;
else
output += "Current Target: NULL" + newline;
}
throwbackInfo(pc, output);
}

Loading…
Cancel
Save