From 74b40961259ca1f74e789aba568dd1cb8d176888 Mon Sep 17 00:00:00 2001 From: Obique PSWG Date: Wed, 30 Dec 2015 16:58:23 -0600 Subject: [PATCH] Optimized DebugUtilities functions --- src/utilities/DebugUtilities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/DebugUtilities.java b/src/utilities/DebugUtilities.java index 886dc7775..5e9484bac 100644 --- a/src/utilities/DebugUtilities.java +++ b/src/utilities/DebugUtilities.java @@ -9,7 +9,7 @@ public class DebugUtilities { public static void printPlayerCharacterDebug(Service service, Player p, String identifyingText) { CreatureObject c = p.getCreatureObject(); - boolean hasGhost = c.getSlottedObject("ghost") != null; + boolean hasGhost = c.hasSlot("ghost"); Log.d(service, "[%s] PLAY=%s/%d CREO=%s/%d hasGhost=%b", identifyingText, p.getUsername(), p.getUserId(), c.getName(), c.getObjectId(), hasGhost); } @@ -21,7 +21,7 @@ public class DebugUtilities { username = p.getUsername(); id = p.getUserId(); } - boolean hasGhost = c.getSlottedObject("ghost") != null; + boolean hasGhost = c.hasSlot("ghost"); Log.d(service, "[%s] PLAY=%s/%d CREO=%s/%d hasGhost=%b", identifyingText, username, id, c.getName(), c.getObjectId(), hasGhost); }