From 81214f2a46e6126a97f7ef036e006fc74cf15dd5 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 30 May 2025 21:48:47 +0200 Subject: [PATCH] Fix crash when there is a tree that has no minable property --- lignumis/prototypes/integrations/vanilla.lua | 1 + 1 file changed, 1 insertion(+) 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