1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-01 07:30:33 +02:00

use set_node(), not add_node()

don't use minetest.env:* method (deprecated), use minetest.* instead
This commit is contained in:
Vanessa Ezekowitz
2014-08-15 19:34:15 -04:00
parent 985111d17c
commit b914e5395b
22 changed files with 261 additions and 261 deletions

View File

@ -28,7 +28,7 @@ function nature:grow_node(pos, nodename)
if is_not_young(pos) and light_enough then
minetest.remove_node(pos)
minetest.add_node(pos, { name = nodename })
minetest.set_node(pos, { name = nodename })
set_young_node(pos)
minetest.log("info", nodename .. " has grown at " .. pos.x .. ","