🐛 Fixed ObjectDisposedException Errors on plant/field and InventorySlot

This commit is contained in:
2025-12-02 11:42:48 +01:00
parent 51a145a994
commit b6caf4dbed
4 changed files with 16 additions and 2 deletions
@@ -28,6 +28,7 @@ public partial class InventoryUi : Control
public override void _ExitTree()
{
InventoryManager.Instance.playerInventory.InventoryContentsChanged -= SetSlotContent;
UnsubscribeSlots();
}