1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-17 07:10:29 +02:00

minetest.env:* is deprecated, use minetest.*

This commit is contained in:
Vanessa Ezekowitz
2014-07-05 02:01:24 -04:00
parent 9032385b61
commit 5adbd3f043
2 changed files with 9 additions and 9 deletions

View File

@ -13,8 +13,8 @@ local function spawn_apple_under(pos)
y = pos.y - 1,
z = pos.z,
}
if minetest.env:get_node(below).name == "air" then
minetest.env:add_node(below, { name = "default:apple" })
if minetest.get_node(below).name == "air" then
minetest.add_node(below, { name = "default:apple" })
end
end