Optimized DebugUtilities functions

This commit is contained in:
Obique PSWG
2015-12-30 16:58:23 -06:00
parent a080b50afa
commit 74b4096125
+2 -2
View File
@@ -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);
}