mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 03:55:30 +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);
|
npc.data().remove(NPC.Metadata.BOUNDING_BOX_FUNCTION);
|
||||||
if (interaction != null) {
|
if (interaction != null) {
|
||||||
interaction.destroy();
|
interaction.destroy();
|
||||||
|
interaction = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user