1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-05-06 19:20:31 +02:00

fix y_func

This commit is contained in:
tenplus1 2025-05-05 12:52:11 +01:00
parent d6893aae07
commit be412804df

View File

@ -264,16 +264,18 @@ if core.get_modpath("caverealms") then
}) })
end end
-- helper
local function y_func(grow_func)
return function(pos)
grow_func({x = pos.x, y = pos.y - 1, z = pos.z})
end
end
-- ferns -- ferns
if core.get_modpath("ferns") then if core.get_modpath("ferns") then
local function y_func(grow_func)
return function(pos)
grow_func({x = pos.x, y = pos.y - 1, z = pos.z})
end
end
bonemeal:add_sapling({ bonemeal:add_sapling({
{"ferns:sapling_giant_tree_fern", {"ferns:sapling_giant_tree_fern",
y_func(abstract_ferns.grow_giant_tree_fern), "soil"}, y_func(abstract_ferns.grow_giant_tree_fern), "soil"},