From 92f49e3096dc37b9b802994d287c47dc7f583c24 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 11 Aug 2016 18:39:55 -0400 Subject: updated boost_cart, plantlife, castle, homedecor, fake_fire, glooptest, quartz, unified_inventory, inbox, mesecons, and worldedit mods --- lrfurn/armchairs.lua | 5 +++-- lrfurn/longsofas.lua | 5 +++-- lrfurn/sofas.lua | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'lrfurn') 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 }) -- cgit v1.2.3