From e0fe1a08c573cb82e3d950ba6c0cbe321f528b04 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Fri, 2 Nov 2012 12:28:23 +0100 Subject: [PATCH] Fix slab -> full block transformation --- mods/stairs/init.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 1b00ef3..95d694d 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -71,13 +71,10 @@ function stairs.register_slab(subname, recipeitem, groups, images, description) local p0 = pointed_thing.under local p1 = pointed_thing.above local n0 = minetest.env:get_node(p0) - local n1 = minetest.env:get_node(p1) - if n0.name == "stairs:slab_" .. subname then + if n0.name == "stairs:slab_" .. subname and + p0.y+1 == p1.y then slabpos = p0 slabnode = n0 - elseif n1.name == "stairs:slab_" .. subname then - slabpos = p1 - slabnode = n1 end if slabpos then -- Remove the slab at slabpos