mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-23 07:35:16 +02:00
Always return stack in itemframes on_rightclick
never nil
This commit is contained in:
parent
4f371d44c8
commit
c5de2f9dbe
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue