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