Skip to content

Commit b66fdf8

Browse files
authored
Update ReagentData.lua (#689)
1 parent 7a5977f commit b66fdf8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Classes/ReagentData.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ function CraftSim.ReagentData:new(recipeData, schematicInfo)
2424
self.requiredSelectableReagentSlot = nil
2525
---@type CraftSim.SalvageReagentSlot
2626
self.salvageReagentSlot = CraftSim.SalvageReagentSlot(self.recipeData)
27-
27+
28+
if not schematicInfo then
29+
return
30+
end
31+
2832
if self.recipeData.isSalvageRecipe then
2933
-- https://www.townlong-yak.com/framexml/live/Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua#1136
3034
self.salvageReagentSlot.requiredQuantity = schematicInfo.quantityMax
3135
end
3236

33-
if not schematicInfo then
34-
return
35-
end
3637
for _, reagentSlotSchematic in pairs(schematicInfo.reagentSlotSchematics) do
3738
local reagentType = reagentSlotSchematic.reagentType
3839

0 commit comments

Comments
 (0)