Skip to content

Commit

Permalink
Some recipes don't have results
Browse files Browse the repository at this point in the history
Parameters lol
  • Loading branch information
oorzkws committed Oct 21, 2024
1 parent 3153792 commit 8f95cc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ if rpm_entity ~= 30 or rpm_items ~= 30 or overload ~= 0 then
})

for _, recipe in pairs(data.raw.recipe) do
if not recipe.results then
goto continue
end
for _, result in pairs(recipe.results) do -- This looks long, however we skip a lot of the logic with caching
local result_name = result[1] or result.name
if result_name and valid_entities[result_name] then
Expand Down

0 comments on commit 8f95cc5

Please sign in to comment.