From fc436a1a1c612be49a303dd3a290f7d41b70291a Mon Sep 17 00:00:00 2001 From: kilbith Date: Sat, 24 Jan 2015 18:25:30 +0100 Subject: [PATCH] Remove vertical expansion on standing lamp use new API function to handle the second-node air --- homedecor/lighting.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 628234ab..b3d2ff31 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -367,15 +367,12 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color) }, selection_box = slamp_cbox, collision_box = slamp_cbox, - on_place = function(itemstack, placer, pointed_thing) - return homedecor.place_vertically(itemstack, placer, pointed_thing, - "homedecor:standing_lamp"..lampcolor.."_"..suffix) - end, on_punch = function(pos, node, puncher) node.name = "homedecor:standing_lamp"..lampcolor.."_"..repl[suffix] minetest.set_node(pos, node) nodeupdate(pos) end, + expand = { top="air" }, }) -- "bottom" in the node name is obsolete now, as "top" node doesn't exist anymore.