fix display node if it was removed

This commit is contained in:
Freeman 2024-03-21 17:50:50 +01:00
parent ec1c0dcb17
commit cfe0d6be8f

@ -228,8 +228,9 @@ local function update_item(pos, node)
pos.y = pos.y + 1
remove_item(pos)
if minetest.get_node(pos).name ~= "fancy_vend:display_node" then
minetest.log("warning", "[Emeraldbank]: Placing display item inside "..minetest.get_node(pos).name.." at "..minetest.pos_to_string(pos).." is not permitted, aborting")
return
-- minetest.log("warning", "[Emeraldbank]: Placing display item inside "..minetest.get_node(pos).name.." at "..minetest.pos_to_string(pos).." is not permitted, aborting")
-- return
minetest.set_node(pos, {name = "fancy_vend:display_node"})
end
pos.y = pos.y - 1
local meta = minetest.get_meta(pos)