17,101
edits
(getSpellsProductingItem: Fix Smithing bar check, previously included imbued bars which cannot be made with Superheat spells) |
m (Fix typo) |
||
Line 411: | Line 411: | ||
local item = Items.getItemByID(itemID) | local item = Items.getItemByID(itemID) | ||
if item ~= nil then | if item ~= nil then | ||
isBar = not Shared. | isBar = not Shared.tableIsEmpty(GameData.getEntities(SkillData.Smithing.recipes, | ||
function(recipe) | function(recipe) | ||
return recipe.categoryID == 'melvorD:Bars' and recipe.productID == item.id | return recipe.categoryID == 'melvorD:Bars' and recipe.productID == item.id |