aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/plate.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r--client/map/items/plate.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index d6df1c46..b4ae8baf 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -16,10 +16,11 @@
class_name Plate
extends Item
-func _init(owned_by_: Node3D, contents: Array):
+func _init(owned_by_: Node3D):
super(owned_by_)
add_child(load("res://map/items/plate.tscn").instantiate())
-
+
+func add_contents(contents: Array[String]):
# Custom logic for handling burgers with buns on bottom and top
if contents.has("sliced-bun") and contents.size() > 1:
contents.erase("sliced-bun")