Have modified string but don't understand from it where is source
Code: Select all
for _,tree in pairs(data.raw["tree"]) do
tree.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
end
Code: Select all
for _,tree in pairs(data.raw["tree"]) do
tree.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
end
Code: Select all
local normalizeTreeCollision = settings.startup["sapling-capsule-normalize-collision-box"].value
if normalizeTreeCollision then
for i, v in pairs( data.raw.tree ) do
if v.collision_box[2][1] < 0.4 then
v.collision_box = {{-0.4, -0.4}, {0.4, 0.4}}
end
end
end
I guess the other mod is loaded after yours (check factorio-current.log!), so it will overwrite any changes you've made. The fix is easy: just apply your changes after the other mod is done!MateuszCOMPANY wrote: Wed Apr 20, 2022 10:38 am Thanks
Edit.
Another question, there is other mod changing tree collision box to tinny but which value cause it?
It cant be {-0.4, -0.4}, {0.4, 0.4} because its default factorio value.
After apply this mod tree collision box becomes around {-0.05, -0.05}, {0.05, 0.05} like in previous mod
But where is there executive value?