1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-16 23:01:07 +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

@ -24,7 +24,7 @@ local function spawn_apple_under(pos)
z = pos.z,
}
if minetest.get_node(below).name == "air" then
minetest.add_node(below, { name = "default:apple" })
minetest.set_node(below, { name = "default:apple" })
end
end