Skip to content
Snippets Groups Projects
Commit bc876d67 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Fixed not combining soups

parent 953347f3
No related branches found
No related tags found
1 merge request!19Resolve "Add recipe yaml check + visualize recipes"
Pipeline #43954 canceled
......@@ -325,7 +325,12 @@ class Plate(CookingEquipment):
def can_combine(self, other):
if not super().can_combine(other):
if isinstance(other, CookingEquipment) and len(other.content_list) == 1:
if (
isinstance(other, CookingEquipment)
and len(other.content_list) == 1
and not self.content_list
and self.clean
):
return other.content_list[0].name in self.transitions
return False
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment