forked from mtcontrib/bonemeal
fix fungiwood sapling, restart any crop timers
This commit is contained in:
parent
bb34fbae3d
commit
996094dd5c
2
init.lua
2
init.lua
@ -243,6 +243,8 @@ local function check_crops(pos, nodename, strength)
|
|||||||
|
|
||||||
particle_effect(pos)
|
particle_effect(pos)
|
||||||
|
|
||||||
|
minetest.get_node_timer(pos):start(10) -- restart any timers
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
7
mods.lua
7
mods.lua
@ -199,9 +199,14 @@ if minetest.get_modpath("df_trees") then
|
|||||||
df_trees.spawn_spore_tree(pos)
|
df_trees.spawn_spore_tree(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function fungiwood_fix(pos)
|
||||||
|
minetest.set_node(pos, {name = "air"})
|
||||||
|
df_trees.spawn_fungiwood(pos)
|
||||||
|
end
|
||||||
|
|
||||||
bonemeal:add_sapling({
|
bonemeal:add_sapling({
|
||||||
{"df_trees:black_cap_sapling", df_trees.spawn_black_cap, "soil"},
|
{"df_trees:black_cap_sapling", df_trees.spawn_black_cap, "soil"},
|
||||||
{"df_trees:fungiwood_sapling", df_trees.spawn_fungiwood, "soil"},
|
{"df_trees:fungiwood_sapling", fungiwood_fix, "soil"},
|
||||||
{"df_trees:goblin_cap_sapling", df_trees.spawn_goblin_cap, "soil"},
|
{"df_trees:goblin_cap_sapling", df_trees.spawn_goblin_cap, "soil"},
|
||||||
{"df_trees:spore_tree_sapling", spore_tree_fix, "soil"},
|
{"df_trees:spore_tree_sapling", spore_tree_fix, "soil"},
|
||||||
{"df_trees:tower_cap_sapling", df_trees.spawn_tower_cap, "soil"},
|
{"df_trees:tower_cap_sapling", df_trees.spawn_tower_cap, "soil"},
|
||||||
|
Loading…
Reference in New Issue
Block a user