4,978
edits
(Synced with live) |
(Simple fix for Firemaking products not showing a source in Firemaking) |
||
Line 21: | Line 21: | ||
local function doesRecipeHaveItemID(recipe, itemID) | local function doesRecipeHaveItemID(recipe, itemID) | ||
if recipe.productId == itemID then | if recipe.productId == itemID then | ||
return true, nil | |||
elseif Shared.contains(recipe.primaryProducts, itemID) or Shared.contains(recipe.secondaryProducts, itemID) then | |||
return true, nil | return true, nil | ||
elseif type(recipe.products) == 'table' then | elseif type(recipe.products) == 'table' then | ||
Line 56: | Line 58: | ||
['Woodcutting'] = { recipeKey = 'trees' }, | ['Woodcutting'] = { recipeKey = 'trees' }, | ||
['Fishing'] = { recipeKey = 'fish' }, | ['Fishing'] = { recipeKey = 'fish' }, | ||
['Firemaking'] = { recipeKey = 'logs' }, | |||
['Mining'] = { recipeKey = 'rockData' }, | ['Mining'] = { recipeKey = 'rockData' }, | ||
['Farming'] = { recipeKey = 'recipes' }, | ['Farming'] = { recipeKey = 'recipes' }, | ||
Line 478: | Line 481: | ||
['Woodcutting'] = { recipeKey = 'trees' }, | ['Woodcutting'] = { recipeKey = 'trees' }, | ||
['Fishing'] = { recipeKey = 'fish' }, | ['Fishing'] = { recipeKey = 'fish' }, | ||
['Firemaking'] = { recipeKey = 'logs' }, | |||
['Mining'] = { recipeKey = 'rockData' }, | ['Mining'] = { recipeKey = 'rockData' }, | ||
['Farming'] = { recipeKey = 'recipes' }, | ['Farming'] = { recipeKey = 'recipes' }, |