Skip to content

Commit

Permalink
Shut up about missing NPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 30, 2015
1 parent 6541f17 commit 23998c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/dNPC.java
Expand Up @@ -143,9 +143,9 @@ public EntityLiving getHandle() {
public NPC getCitizen() {
NPC npc = CitizensAPI.getNPCRegistry().getById(npcid);
if (npc == null) {
dB.echoError(new RuntimeException("StackTraceOutput"));
dB.log("Uh oh! Denizen has encountered a NPE while trying to fetch an NPC. " +
"Has this NPC been removed?");
//dB.echoError(new RuntimeException("StackTraceOutput"));
//dB.log("Uh oh! Denizen has encountered a NPE while trying to fetch an NPC. " +
// "Has this NPC been removed?");
}
return npc;
}
Expand Down

0 comments on commit 23998c9

Please sign in to comment.