Replace use of place_node with add_node
This commit is contained in:
parent
e7398c3ce1
commit
b2fd9456c2
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user