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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user