Deposit test
This commit is contained in:
parent
014b161636
commit
7dd861eeb2
1 changed files with 1 additions and 1 deletions
|
@ -11,5 +11,5 @@ func _process(_delta: float) -> void:
|
||||||
|
|
||||||
func try_add(dir: Vector2,stack : Stack):
|
func try_add(dir: Vector2,stack : Stack):
|
||||||
var found = structure_parent.get_relative(dir)
|
var found = structure_parent.get_relative(dir)
|
||||||
if found != null:
|
if found != null and found.inventory != null:
|
||||||
found.inventory.add(stack)
|
found.inventory.add(stack)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue