Skip to content

Commit 3c0fa5f

Browse files
committedNov 1, 2013
Remove trailing tabs from empty lines in stairs
1 parent 7b8ad57 commit 3c0fa5f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
 

‎mods/stairs/init.lua

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
2525
if pointed_thing.type ~= "node" then
2626
return itemstack
2727
end
28-
28+
2929
local p0 = pointed_thing.under
3030
local p1 = pointed_thing.above
3131
local param2 = 0
32-
32+
3333
local placer_pos = placer:getpos()
3434
if placer_pos then
3535
local dir = {
@@ -39,7 +39,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
3939
}
4040
param2 = minetest.dir_to_facedir(dir)
4141
end
42-
42+
4343
if p0.y-1 == p1.y then
4444
param2 = param2 + 20
4545
if param2 == 21 then
@@ -48,11 +48,11 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
4848
param2 = 21
4949
end
5050
end
51-
51+
5252
return minetest.item_place(itemstack, placer, pointed_thing, param2)
5353
end,
5454
})
55-
55+
5656
-- for replace ABM
5757
minetest.register_node(":stairs:stair_" .. subname.."upside_down", {
5858
replace_name = "stairs:stair_" .. subname,
@@ -108,10 +108,10 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
108108
local n0 = minetest.get_node(p0)
109109
local n1 = minetest.get_node(p1)
110110
local param2 = 0
111-
111+
112112
local n0_is_upside_down = (n0.name == "stairs:slab_" .. subname and
113113
n0.param2 >= 20)
114-
114+
115115
if n0.name == "stairs:slab_" .. subname and not n0_is_upside_down and p0.y+1 == p1.y then
116116
slabpos = p0
117117
slabnode = n0
@@ -125,7 +125,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
125125
-- Make a fake stack of a single item and try to place it
126126
local fakestack = ItemStack(recipeitem)
127127
fakestack:set_count(itemstack:get_count())
128-
128+
129129
pointed_thing.above = slabpos
130130
local success
131131
fakestack, success = minetest.item_place(fakestack, placer, pointed_thing)
@@ -148,7 +148,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
148148
-- Make a fake stack of a single item and try to place it
149149
local fakestack = ItemStack(recipeitem)
150150
fakestack:set_count(itemstack:get_count())
151-
151+
152152
pointed_thing.above = p0
153153
local success
154154
fakestack, success = minetest.item_place(fakestack, placer, pointed_thing)
@@ -161,20 +161,20 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
161161
end
162162
return itemstack
163163
end
164-
164+
165165
-- Place upside down slab
166166
param2 = 20
167167
end
168-
168+
169169
-- If pointing at the side of a upside down slab
170170
if n0_is_upside_down and p0.y+1 ~= p1.y then
171171
param2 = 20
172172
end
173-
173+
174174
return minetest.item_place(itemstack, placer, pointed_thing, param2)
175175
end,
176176
})
177-
177+
178178
-- for replace ABM
179179
minetest.register_node(":stairs:slab_" .. subname.."upside_down", {
180180
replace_name = "stairs:slab_"..subname,

0 commit comments

Comments
 (0)
Please sign in to comment.