mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-08-20 05:14:06 +02:00
fix display node if it was removed
This commit is contained in:
parent
ec1c0dcb17
commit
cfe0d6be8f
@ -228,8 +228,9 @@ local function update_item(pos, node)
|
|||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
remove_item(pos)
|
remove_item(pos)
|
||||||
if minetest.get_node(pos).name ~= "fancy_vend:display_node" then
|
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")
|
-- minetest.log("warning", "[Emeraldbank]: Placing display item inside "..minetest.get_node(pos).name.." at "..minetest.pos_to_string(pos).." is not permitted, aborting")
|
||||||
return
|
-- return
|
||||||
|
minetest.set_node(pos, {name = "fancy_vend:display_node"})
|
||||||
end
|
end
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user