Fixed a crafting category bug related to fluids. (#848)

This commit is contained in:
CaitSith2 2022-07-31 14:01:39 -07:00 committed by GitHub
parent d1f34d088b
commit 4b85000960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class Factorio(World):
# Return the liquid to the pool and get a new ingredient. # Return the liquid to the pool and get a new ingredient.
pool.append(new_ingredient) pool.append(new_ingredient)
new_ingredient = pool.pop(0) new_ingredient = pool.pop(0)
liquids_used += 1 liquids_used += 1 if new_ingredient in fluids else 0
new_ingredients[new_ingredient] = 1 new_ingredients[new_ingredient] = 1
return Recipe(original.name, self.get_category(original.category, liquids_used), new_ingredients, return Recipe(original.name, self.get_category(original.category, liquids_used), new_ingredients,
original.products, original.energy) original.products, original.energy)