fix y_func

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

View File

@ -264,9 +264,7 @@ if core.get_modpath("caverealms") then
}) })
end end
-- ferns -- helper
if core.get_modpath("ferns") then
local function y_func(grow_func) local function y_func(grow_func)
return function(pos) return function(pos)
@ -274,6 +272,10 @@ if core.get_modpath("ferns") then
end end
end end
-- ferns
if core.get_modpath("ferns") then
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"},