From e788c66c039e74c9ce1d51646c6b2f42113be20f Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 13 Sep 2024 18:18:25 +0200 Subject: Fix error when contents array is empty --- client/map/items/glass.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/map/items/glass.gd') 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 -- cgit v1.2.3-70-g09d2