From fefb3f9f20893213d86dfd0f801d67b4c8e9823c Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 22 Jan 2015 17:41:58 +0100 Subject: [PATCH] make sure any expansion node is being replaced with air if it's buildable_to and no other second node is being used as replacement --- homedecor/expansion.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homedecor/expansion.lua b/homedecor/expansion.lua index 68bebff..f02baf6 100644 --- a/homedecor/expansion.lua +++ b/homedecor/expansion.lua @@ -26,10 +26,7 @@ local function stack(itemstack, placer, fdir, pos, def, pos2, node1, node2) if is_buildable_to(placer_name, pos, def, pos2) then local fdir = fdir or minetest.dir_to_facedir(placer:get_look_dir()) minetest.set_node(pos, { name = node1, param2 = fdir }) - - if node2 then - minetest.set_node(pos2, { name = node2, param2 = fdir }) - end + minetest.set_node(pos2, { name = node2 or "air", param2 = node2 and fdir or nil }) -- temporary check if this is a locked node to set its infotext local nodename = itemstack:get_name()