Diversitree: Improve compatibility

This commit is contained in:
Simon Brodtmann 2025-12-12 22:14:31 +01:00
parent 996fd2f7c4
commit 61c2d30dd7
3 changed files with 15 additions and 6 deletions

View file

@ -111,7 +111,7 @@ for _, tree in pairs(data.raw.tree) do
if not isRegularTree then goto continue end
tree.minable.result = nil
tree.minable.count = nil
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 = 8 }
if minable.results and #woodResults > 0 then
table.assign(woodResults[1], woodResult)
woodResults[1].amount = nil
@ -128,10 +128,6 @@ tree_plant.minable.count = nil
tree_plant.surface_conditions[1].min = 900
table.insert(tree_plant.autoplace.tile_restriction, "natural-gold-soil")
if mods["Diversitree"] then
data.raw.plant["s6xdvt-fake-tree"].surface_conditions[1].min = 900
end
table.insert(data.raw["assembling-machine"]["assembling-machine-1"].crafting_categories, "organic-or-assembling")