From 3dc814ef8c54a7f6a516cc61e59084530bb25ecc Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 12 Jun 2016 23:50:35 +0800 Subject: [PATCH] Ignore cancelled NPC spawns --- src/main/java/net/citizensnpcs/EventListen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/EventListen.java b/src/main/java/net/citizensnpcs/EventListen.java index 1e13077d5..dbe3a8810 100644 --- a/src/main/java/net/citizensnpcs/EventListen.java +++ b/src/main/java/net/citizensnpcs/EventListen.java @@ -369,7 +369,7 @@ public class EventListen implements Listener { skinUpdateTracker.onNPCDespawn(event.getNPC()); } - @EventHandler + @EventHandler(ignoreCancelled = true) public void onNPCSpawn(NPCSpawnEvent event) { skinUpdateTracker.onNPCSpawn(event.getNPC()); }