mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-06-28 14:16:11 +02:00
use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead
This commit is contained in:
@ -88,7 +88,7 @@ abstract_molehills.place_molehill = function(pos)
|
||||
and minetest.get_node({x=pos.x+1, y=pos.y, z=pos.z-1}).name ~= "air"
|
||||
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z+1}).name ~= "air"
|
||||
and minetest.get_node({x=pos.x-1, y=pos.y, z=pos.z-1}).name ~= "air" then
|
||||
minetest.add_node(right_here, {name="molehills:molehill"})
|
||||
minetest.set_node(right_here, {name="molehills:molehill"})
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user