fix fungiwood sapling, restart any crop timers

This commit is contained in:
tenplus1 2022-06-30 13:00:50 +01:00
parent bb34fbae3d
commit 996094dd5c
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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"},