mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
make sure mc entity is null when despawning
This commit is contained in:
parent
0e737cc367
commit
d4977e10d2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user