diff options
author | tpart <tpart120@proton.me> | 2024-09-26 23:48:03 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-26 23:48:03 +0200 |
commit | 6de85178419eb2e1320c99101236e8abe8bbecb4 (patch) | |
tree | 63641b50237c52f2a06005a1f26c1f85b4c16885 | |
parent | 6005c319e099792b6cda6a1582d578876c0c4375 (diff) | |
download | hurrycurry-6de85178419eb2e1320c99101236e8abe8bbecb4.tar hurrycurry-6de85178419eb2e1320c99101236e8abe8bbecb4.tar.bz2 hurrycurry-6de85178419eb2e1320c99101236e8abe8bbecb4.tar.zst |
Fix sliced buns on plates indistinguishable from normal buns
-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 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") |