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)