Always return stack in itemframes on_rightclick

never nil
This commit is contained in:
cora 2024-05-21 16:52:43 +02:00 committed by the-real-herowl
parent 4f371d44c8
commit c5de2f9dbe

View file

@ -106,7 +106,7 @@ function mcl_itemframes.tpl_node.on_rightclick(pos, node, clicker, ostack, point
local name = clicker:get_player_name()
if minetest.is_protected(pos, name) then
minetest.record_protection_violation(pos, name)
return
return ostack
end
local pstack = ItemStack(ostack)
local itemstack = pstack:take_item()