From 4d1b5a79b7dabe4ec8be2998814a6ce1de65cd6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZX=E5=A4=8F=E5=A4=9C=E4=B9=8B=E9=A3=8E?= Date: Tue, 22 Oct 2024 19:19:26 +0800 Subject: [PATCH] fix: release interaction NPC handle when owner NPC despawn (#3161) --- main/src/main/java/net/citizensnpcs/trait/BoundingBoxTrait.java | 1 + 1 file changed, 1 insertion(+) diff --git a/main/src/main/java/net/citizensnpcs/trait/BoundingBoxTrait.java b/main/src/main/java/net/citizensnpcs/trait/BoundingBoxTrait.java index 5435b00a9..3d674f7db 100644 --- a/main/src/main/java/net/citizensnpcs/trait/BoundingBoxTrait.java +++ b/main/src/main/java/net/citizensnpcs/trait/BoundingBoxTrait.java @@ -61,6 +61,7 @@ public class BoundingBoxTrait extends Trait implements Supplier { npc.data().remove(NPC.Metadata.BOUNDING_BOX_FUNCTION); if (interaction != null) { interaction.destroy(); + interaction = null; } }