mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-02 23:00:22 +02:00
Always return the ItemStack for on_rightclick to comply with the API.
This commit is contained in:
@ -46,13 +46,14 @@ for i in ipairs(lrfurn.colors) do
|
||||
end
|
||||
return itemstack
|
||||
end,
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
if not clicker:is_player() then
|
||||
return
|
||||
return itemstack
|
||||
end
|
||||
pos.y = pos.y-0.5
|
||||
clicker:setpos(pos)
|
||||
clicker:set_hp(20)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user