Wood Gasification updated: Fix amount of wood per tree

This commit is contained in:
Simon Brodtmann 2025-04-13 00:14:47 +02:00
parent 5bdde48ef1
commit c8959290c0
2 changed files with 2 additions and 0 deletions

View file

@ -35,6 +35,7 @@
"?hot-metals >= 1.1.0", "?hot-metals >= 1.1.0",
"?lane-splitters", "?lane-splitters",
"?metal-and-stars", "?metal-and-stars",
"?Wood_Gasification_updated",
"?wood-industry", "?wood-industry",
"?wood-military >= 2.3.3", "?wood-military >= 2.3.3",
"!apm_power_ldinc", "!apm_power_ldinc",

View file

@ -102,6 +102,7 @@ for _, tree in pairs(data.raw.tree) do
local woodResult = { type = "item", name = "wood", amount = nil, amount_min = 2, amount_max = 10 } local woodResult = { type = "item", name = "wood", amount = nil, amount_min = 2, amount_max = 10 }
if minable.results and #woodResults > 0 then if minable.results and #woodResults > 0 then
table.assign(woodResults[1], woodResult) table.assign(woodResults[1], woodResult)
woodResults[1].amount = nil
else else
minable.results = { woodResult } minable.results = { woodResult }
end end