make sure mc entity is null when despawning

This commit is contained in:
aPunch 2012-01-29 13:14:10 -06:00
parent 0e737cc367
commit d4977e10d2

View File

@ -33,6 +33,7 @@ public class CitizensNPC extends AbstractNPC {
Bukkit.getPluginManager().callEvent(new NPCDespawnEvent(this));
manager.despawn(this);
mcEntity = null;
getTrait(Spawned.class).setSpawned(false);
return true;