From a0e63cde8f0fed2143d5b9fb6311faf1101b03c0 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 4 Apr 2023 17:52:26 -0400 Subject: [PATCH] Bugfix in info dealing with mob flags on npcs. --- src/engine/devcmd/cmds/InfoCmd.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 27750c60..32909724 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -350,13 +350,16 @@ public class InfoCmd extends AbstractDevCmd { output += StringUtils.addWS("Level: " + targetNPC.getLevel(), 20); MobBase mobBase = targetNPC.getMobBase(); - if (mobBase != null) - output += "RaceID: " + mobBase.getObjectUUID(); - else - output += "RaceID: " + targetNPC.getLoadID(); + if (mobBase != null) { + output += "Mobbbase: " + mobBase.getObjectUUID(); + output += newline; + output += "Flags: " + targetNPC.getMobBase().getFlags().toString(); + } else { + output += "RaceID (no mobbase): " + targetNPC.getLoadID(); + output += "Flags: " + MobBase.getMobBase(targetNPC.getLoadID()).getFlags().toString(); + + } - output += newline; - output += "Flags: " + targetNPC.getMobBase().getFlags().toString(); output += newline; output += "Spawn: (" + targetNPC.getBindLoc().getX(); output += ", " + targetNPC.getBindLoc().getY();