aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/glass.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/glass.gd')
-rw-r--r--client/map/items/glass.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/map/items/glass.gd b/client/map/items/glass.gd
index 900a3eba..b9582a3a 100644
--- a/client/map/items/glass.gd
+++ b/client/map/items/glass.gd
@@ -16,10 +16,11 @@
class_name Glass
extends Item
-func _init(owned_by_: Node3D, contents: Array):
+func _init(owned_by_: Node3D):
super(owned_by_)
add_child(load("res://map/items/glass.tscn").instantiate())
-
+
+func add_contents(contents: Array[String]):
for i in contents:
var item: Item
match i: