Replace use of place_node with add_node

This commit is contained in:
Jacob Gustafson 2019-06-07 13:37:15 -04:00 committed by raymoo
parent e7398c3ce1
commit b2fd9456c2
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
for i, location in ipairs(locations) do
if math.random(3) == 1 then
minetest.place_node(location, { name = "loot:loot_node" })
minetest.add_node(location, { name = "loot:loot_node" })
end
end
end)

View File

@ -14,7 +14,7 @@ minetest.register_abm({
chance = 1,
action = function(pos)
minetest.remove_node(pos)
minetest.place_node(pos, {name = "default:chest"})
minetest.add_node(pos, {name = "default:chest"})
local inv = minetest.get_meta(pos):get_inventory()
local valuable_count = math.random(1,3)