projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a6cd8
)
Fix slab -> full block transformation
19/head
author
PilzAdam
<adam-k@outlook.com>
Fri, 2 Nov 2012 11:28:23 +0000
(12:28 +0100)
committer
PilzAdam
<adam-k@outlook.com>
Fri, 2 Nov 2012 11:28:23 +0000
(12:28 +0100)
mods/stairs/init.lua
patch
|
blob
|
history
diff --git
a/mods/stairs/init.lua
b/mods/stairs/init.lua
index 1b00ef3663d227fe1acf5a5d1123dc187b4e426b..95d694d0ff53de2827b44201a75bb10c00bef36f 100644
(file)
--- 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