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/plate.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/plate.gd')
-rw-r--r-- | client/map/items/plate.gd | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |