diff --git a/mods.lua b/mods.lua index 6725130..bdf69e9 100644 --- a/mods.lua +++ b/mods.lua @@ -264,16 +264,18 @@ if core.get_modpath("caverealms") then }) 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 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({ {"ferns:sapling_giant_tree_fern", y_func(abstract_ferns.grow_giant_tree_fern), "soil"},