Deposit test

This commit is contained in:
Rendo 2025-10-15 18:18:03 +05:00
commit 7dd861eeb2

View file

@ -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)