diff options
author | tpart <tpart120@proton.me> | 2024-09-13 18:18:25 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-13 18:18:25 +0200 |
commit | e788c66c039e74c9ce1d51646c6b2f42113be20f (patch) | |
tree | 9c5c2f7575a43e0432c19dad4be6a1c42f927069 /client/map/items/food_processor.gd | |
parent | e659c39776829a134a2514cf76347f69b53a38e8 (diff) | |
download | hurrycurry-e788c66c039e74c9ce1d51646c6b2f42113be20f.tar hurrycurry-e788c66c039e74c9ce1d51646c6b2f42113be20f.tar.bz2 hurrycurry-e788c66c039e74c9ce1d51646c6b2f42113be20f.tar.zst |
Fix error when contents array is empty
Diffstat (limited to 'client/map/items/food_processor.gd')
-rw-r--r-- | client/map/items/food_processor.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index 67632fb4..a53d2034 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -19,7 +19,7 @@ extends Item var time := 0. var processing: CPUParticles3D = load("res://map/items/processing.tscn").instantiate() -func _init(owned_by_: Node3D, contents: Array[String]): +func _init(owned_by_: Node3D, contents: Array): super(owned_by_) add_child(load("res://map/items/food_processor.tscn").instantiate()) add_child(processing) |