Skip to content

Commit

Permalink
Ignore cancelled NPC despawns
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jun 12, 2016
1 parent 4d4c3ac commit aa953ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/EventListen.java
Expand Up @@ -358,7 +358,7 @@ public void onNeedsRespawn(NPCNeedsRespawnEvent event) {
toRespawn.put(coord, event.getNPC());
}

@EventHandler
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onNPCDespawn(NPCDespawnEvent event) {
if (event.getReason() == DespawnReason.PLUGIN || event.getReason() == DespawnReason.REMOVAL
|| event.getReason() == DespawnReason.RELOAD) {
Expand Down

0 comments on commit aa953ff

Please sign in to comment.