From 7dd861eeb289518cd59174c52e3370485238bae3 Mon Sep 17 00:00:00 2001 From: Rendo Date: Wed, 15 Oct 2025 18:18:03 +0500 Subject: [PATCH] Deposit test --- scripts/structures/debug_item_deposit.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/structures/debug_item_deposit.gd b/scripts/structures/debug_item_deposit.gd index f237ef6..f72f0e9 100644 --- a/scripts/structures/debug_item_deposit.gd +++ b/scripts/structures/debug_item_deposit.gd @@ -11,5 +11,5 @@ func _process(_delta: float) -> void: func try_add(dir: Vector2,stack : Stack): var found = structure_parent.get_relative(dir) - if found != null: + if found != null and found.inventory != null: found.inventory.add(stack)