summaryrefslogtreecommitdiff
path: root/lrfurn/sofas.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lrfurn/sofas.lua')
-rw-r--r--lrfurn/sofas.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lrfurn/sofas.lua b/lrfurn/sofas.lua
index 1f7c217..bc071c2 100644
--- a/lrfurn/sofas.lua
+++ b/lrfurn/sofas.lua
@@ -48,13 +48,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
})