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:
parent
d6893aae07
commit
be412804df
14
mods.lua
14
mods.lua
@ -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"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user