TSM/Crafting: Fix nil cost / total cost string

This commit is contained in:
Andrew6810
2023-04-07 10:16:51 -07:00
parent 888ba57ef3
commit aa1617f4db
2 changed files with 9 additions and 14 deletions
@@ -70,14 +70,6 @@ function Cost:GetCraftCost(itemID)
costIsValid = false
end
for matID, matQuantity in pairs(craft.mats) do
local MatName = GetItemInfo(matID)
-- if MatName ~= nil and strfind(MatName, "Vellum") then
-- local NewItemString = CheapestVellum(matID)
-- if matID ~= NewItemString then
-- matID = NewItemString
-- end
-- end
local matCost = Cost:GetMatCost(matID)
if not matCost or matCost == 0 then
costIsValid = false