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 | |
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')
-rw-r--r-- | client/map/items/food_processor.gd | 2 | ||||
-rw-r--r-- | client/map/items/glass.gd | 2 | ||||
-rw-r--r-- | client/map/items/plate.gd | 2 | ||||
-rw-r--r-- | client/map/items/pot.gd | 2 |
4 files changed, 4 insertions, 4 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) diff --git a/client/map/items/glass.gd b/client/map/items/glass.gd index cff41f18..2e2452f6 100644 --- a/client/map/items/glass.gd +++ b/client/map/items/glass.gd @@ -16,7 +16,7 @@ class_name Glass extends Item -func _init(owned_by_: Node3D, contents: Array[String]): +func _init(owned_by_: Node3D, contents: Array): super(owned_by_) add_child(load("res://map/items/glass.tscn").instantiate()) # TODO diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index 7019bcf8..4463ce05 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -17,7 +17,7 @@ class_name Plate extends Item -func _init(owned_by_: Node3D, contents: Array[String]): +func _init(owned_by_: Node3D, contents: Array): super(owned_by_) add_child(load("res://map/items/plate.tscn").instantiate()) diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index fb41e3d7..6295fa99 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -18,7 +18,7 @@ extends Item var steam: CPUParticles3D = load("res://map/items/steam.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/pot.tscn").instantiate()) base.add_child(steam) |