mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-07-01 08:54:54 +02:00
make sure mc entity is null when despawning
This commit is contained in:
parent
3e03dfa35b
commit
26917d7f1c
|
@ -33,6 +33,7 @@ public class CitizensNPC extends AbstractNPC {
|
||||||
Bukkit.getPluginManager().callEvent(new NPCDespawnEvent(this));
|
Bukkit.getPluginManager().callEvent(new NPCDespawnEvent(this));
|
||||||
|
|
||||||
manager.despawn(this);
|
manager.despawn(this);
|
||||||
|
mcEntity = null;
|
||||||
getTrait(Spawned.class).setSpawned(false);
|
getTrait(Spawned.class).setSpawned(false);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user