summaryrefslogtreecommitdiff
path: root/lrfurn
diff options
context:
space:
mode:
Diffstat (limited to 'lrfurn')
-rw-r--r--lrfurn/armchairs.lua5
-rw-r--r--lrfurn/longsofas.lua5
-rw-r--r--lrfurn/sofas.lua5
3 files changed, 9 insertions, 6 deletions
diff --git a/lrfurn/armchairs.lua b/lrfurn/armchairs.lua
index 39999dd..f3b8225 100644
--- a/lrfurn/armchairs.lua
+++ b/lrfurn/armchairs.lua
@@ -24,13 +24,14 @@ for i in ipairs(lrfurn.colors) do
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
node_box = armchair_cbox,
- 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
})
diff --git a/lrfurn/longsofas.lua b/lrfurn/longsofas.lua
index 3bcd8ec..a1721a9 100644
--- a/lrfurn/longsofas.lua
+++ b/lrfurn/longsofas.lua
@@ -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
})
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
})