fixed property helper bug with non food ingredients

This commit is contained in:
vabene1111 2023-05-29 12:43:14 +02:00
parent cadf14c338
commit a65e93a9b3

View File

@ -39,6 +39,7 @@ class FoodPropertyHelper:
uch = UnitConversionHelper(self.space) uch = UnitConversionHelper(self.space)
for i in ingredients: for i in ingredients:
if i.food is not None:
conversions = uch.get_conversions(i) conversions = uch.get_conversions(i)
for pt in property_types: for pt in property_types:
found_property = False found_property = False