From b2fd9456c2cf976f1058fb9db9d5cfef73f74d60 Mon Sep 17 00:00:00 2001 From: Jacob Gustafson <7557867+poikilos@users.noreply.github.com> Date: Fri, 7 Jun 2019 13:37:15 -0400 Subject: [PATCH] Replace use of place_node with add_node --- dungeon.lua | 2 +- loot_node.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeon.lua b/dungeon.lua index 0d1ef24..4b92e9c 100644 --- a/dungeon.lua +++ b/dungeon.lua @@ -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) diff --git a/loot_node.lua b/loot_node.lua index 571a639..fbce682 100644 --- a/loot_node.lua +++ b/loot_node.lua @@ -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)