diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index e3946ca..7a25919 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -99,6 +99,7 @@ for _, tree in pairs(data.raw.tree) do return result.name == "wood" end local minable = tree.minable + if not minable then goto continue end local woodResults = minable.results and table.filter(minable.results, isWoodResult) local isRegularTree = (minable.result == "wood" and minable.count == 4) or (minable.results and #minable.results == 1 and #woodResults == 1 and woodResults[1].amount == 4) if not isRegularTree then goto continue end