From 6de85178419eb2e1320c99101236e8abe8bbecb4 Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 26 Sep 2024 23:48:03 +0200 Subject: Fix sliced buns on plates indistinguishable from normal buns --- client/map/items/plate.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index 506cd643..7938a35d 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -22,7 +22,7 @@ func _init(owned_by_: Node3D, contents: Array): add_child(load("res://map/items/plate.tscn").instantiate()) # Custom logic for handling burgers with buns on bottom and top - if contents.has("sliced-bun"): + if contents.has("sliced-bun") and contents.size() > 1: contents.erase("sliced-bun") contents.push_front("sliced-bun-bottom") contents.push_back("sliced-bun-top") -- cgit v1.2.3-70-g09d2