diff options
Diffstat (limited to 'nature_classic')
-rw-r--r-- | nature_classic/blossom.lua | 2 | ||||
-rw-r--r-- | nature_classic/global_function.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index 8bb68e0..7accd5e 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -9,7 +9,7 @@ local function spawn_apple_under(pos) z = pos.z, } if minetest.get_node(below).name == "air" then - minetest.set_node(below, { name = "default:apple" }) + minetest.swap_node(below, { name = "default:apple" }) end end diff --git a/nature_classic/global_function.lua b/nature_classic/global_function.lua index c6b158a..b83201c 100644 --- a/nature_classic/global_function.lua +++ b/nature_classic/global_function.lua @@ -67,7 +67,7 @@ function nature:grow_node(pos, nodename) >= nature.minimum_growth_light if is_not_young(pos) and light_enough then - minetest.set_node(pos, { name = nodename }) + minetest.swap_node(pos, { name = nodename }) set_young_node(pos) minetest.log("info", nodename .. " has grown at " .. pos.x .. "," |