mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-21 18:15:51 +01:00
fix: release interaction NPC handle when owner NPC despawn (#3161)
This commit is contained in:
parent
5e85b8a035
commit
4d1b5a79b7
@ -61,6 +61,7 @@ public class BoundingBoxTrait extends Trait implements Supplier<BoundingBox> {
|
||||
npc.data().remove(NPC.Metadata.BOUNDING_BOX_FUNCTION);
|
||||
if (interaction != null) {
|
||||
interaction.destroy();
|
||||
interaction = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user