Skip to content

Commit

Permalink
Add crafting-with-fluid check to pyPP stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Oct 18, 2024
1 parent 191bb41 commit 7e819fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/metas/recipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ metas.add_ingredient = function(self, ingredient)
end
end

if (not self.category or self.category == 'crafting') and ingredient.type == 'fluid' then
self.category = 'crafting-with-fluid'
end

table_insert(self.ingredients, ingredient)
return self
end
Expand Down

0 comments on commit 7e819fe

Please sign in to comment.