Skip to content

Commit

Permalink
Cleanfile: remove all whitespace issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
sofar committed Apr 1, 2017
1 parent 033e08d commit b567295
Show file tree
Hide file tree
Showing 26 changed files with 116 additions and 162 deletions.
2 changes: 0 additions & 2 deletions my_castle_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dofile(minetest.get_modpath("my_castle_doors").."/locked.lua")
dofile(minetest.get_modpath("my_castle_doors").."/unlocked.lua")


2 changes: 0 additions & 2 deletions my_castle_doors/unlocked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,3 @@ minetest.register_craft({
{"my_door_wood:wood_brown", "my_door_wood:wood_brown", "default:steel_ingot"}
}
})


2 changes: 0 additions & 2 deletions my_cottage_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dofile(minetest.get_modpath("my_cottage_doors").."/locked.lua")
dofile(minetest.get_modpath("my_cottage_doors").."/unlocked.lua")


6 changes: 1 addition & 5 deletions my_cottage_doors/locked.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local cdoor_list = { --Number , Description , Inven Image , Image
{"Cottage Door 1" , "door1"},
-- {"Cottage Door 2" , "door2"},
-- {"Cottage Door 2" , "door2"},
}


Expand Down Expand Up @@ -37,7 +37,3 @@ minetest.register_craft({
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})




6 changes: 1 addition & 5 deletions my_cottage_doors/unlocked.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local cdoor_list = { --Number , Description , Inven Image , Image
-- {"Cottage Door 1" , "door1"},
{"Cottage Door 2" , "door2"},
{"Cottage Door 2" , "door2"},
}


Expand Down Expand Up @@ -37,7 +37,3 @@ minetest.register_craft({
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})




2 changes: 0 additions & 2 deletions my_default_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dofile(minetest.get_modpath("my_default_doors").."/locked.lua")
--dofile(minetest.get_modpath("my_default_doors").."/unlocked.lua")


7 changes: 1 addition & 6 deletions my_default_doors/locked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Bronze Door" , "bronze", "bronze_ingot"},
{ "2", "Copper Door" , "copper", "copper_ingot"},
{ "3", "Gold Door" , "gold", "gold_ingot"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "5", "Mese Door" , "mese", "mese_crystal"},
}

Expand Down Expand Up @@ -34,8 +34,3 @@ minetest.register_craft({
}
})
end





7 changes: 1 addition & 6 deletions my_default_doors/unlocked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Bronze Door" , "bronze", "bronze_ingot"},
{ "2", "Copper Door" , "copper", "copper_ingot"},
{ "3", "Gold Door" , "gold", "gold_ingot"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "4", "Diamond Door" , "diamond", "diamond"},
{ "5", "Mese Door" , "mese", "mese_crystal"},
}

Expand Down Expand Up @@ -34,8 +34,3 @@ minetest.register_craft({
}
})
end





3 changes: 0 additions & 3 deletions my_door_wood/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,3 @@ minetest.register_craft({
}
})
end



2 changes: 0 additions & 2 deletions my_fancy_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dofile(minetest.get_modpath("my_fancy_doors").."/locked.lua")
dofile(minetest.get_modpath("my_fancy_doors").."/unlocked.lua")


14 changes: 6 additions & 8 deletions my_fancy_doors/locked.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local fdoor_list = { --Number , Description , Inven Image , Image
{"Fancy Door 1" , "door1"},
-- {"Fancy Door 2" , "door2"},
-- {"Fancy Door 3" , "door3"},
{"Fancy Door 4" , "door4"},
{"Fancy Door 5" , "door5"},
{"Fancy Door 6" , "door6"},
{"Fancy Door 7" , "door7"},
-- {"Fancy Door 2" , "door2"},
-- {"Fancy Door 3" , "door3"},
{"Fancy Door 4" , "door4"},
{"Fancy Door 5" , "door5"},
{"Fancy Door 6" , "door6"},
{"Fancy Door 7" , "door7"},
{"Fancy Door 8" , "door8"},
}

Expand Down Expand Up @@ -91,5 +91,3 @@ minetest.register_craft({
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})


13 changes: 6 additions & 7 deletions my_fancy_doors/unlocked.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local fdoor_list = { --Number , Description , Inven Image , Image
-- {"Fancy Door 1" , "door1"},
{"Fancy Door 2" , "door2"},
{"Fancy Door 3" , "door3"},
-- {"Fancy Door 4" , "door4"},
-- {"Fancy Door 5" , "door5"},
-- {"Fancy Door 6" , "door6"},
-- {"Fancy Door 7" , "door7"},
{"Fancy Door 2" , "door2"},
{"Fancy Door 3" , "door3"},
-- {"Fancy Door 4" , "door4"},
-- {"Fancy Door 5" , "door5"},
-- {"Fancy Door 6" , "door6"},
-- {"Fancy Door 7" , "door7"},
-- {"Fancy Door 8" , "door8"},
}

Expand Down Expand Up @@ -59,4 +59,3 @@ minetest.register_craft({
{"my_door_wood:wood_red", "my_door_wood:wood_dark_grey", ""}
}
})

38 changes: 19 additions & 19 deletions my_future_doors/framed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ minetest.register_node("my_future_doors:door1a_"..col, {
selection_box = {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.1875, 0.4375, 1.5, -0.0625}, --door
{0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right
{-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left
{-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top
{-0.4375, -0.5, -0.1875, 0.4375, 1.5, -0.0625}, --door
{0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right
{-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left
{-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top
}
},

Expand All @@ -47,7 +47,7 @@ on_place = function(itemstack, placer, pointed_thing)
not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or
not placer or
not placer:is_player() then
return
return
end
return minetest.item_place(itemstack, placer, pointed_thing)
end,
Expand Down Expand Up @@ -84,21 +84,21 @@ minetest.register_node("my_future_doors:door1b_"..col, {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.1875, 0.4375, 0.5, -0.0625},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, 0.5, 0.625, 0.5, 0.5625},
{0.4375, -0.5, -0.5625, 0.625, 0.5, -0.5},
{-0.625, -0.5, -0.5625, -0.4375, 0.5, -0.5},
{-0.625, -0.5, 0.5, -0.4375, 0.5, 0.5625},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{-0.625, 0.4375, -0.5625, 0.625, 0.625, -0.5},
{-0.625, 0.4375, 0.5, 0.625, 0.625, 0.5625},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{0.4375, -0.5, 0.5, 0.625, 0.5, 0.5625},
{0.4375, -0.5, -0.5625, 0.625, 0.5, -0.5},
{-0.625, -0.5, -0.5625, -0.4375, 0.5, -0.5},
{-0.625, -0.5, 0.5, -0.4375, 0.5, 0.5625},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{-0.625, 0.4375, -0.5625, 0.625, 0.625, -0.5},
{-0.625, 0.4375, 0.5, 0.625, 0.625, 0.5625},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, -0.5, -0.5, -0.5},
{-0.5, -0.5, -0.5, -0.5, -0.5, -0.5},
}
},
})minetest.register_node("my_future_doors:door1c_"..col, {
Expand Down Expand Up @@ -128,9 +128,9 @@ minetest.register_node("my_future_doors:door1b_"..col, {
selection_box = {
type = "fixed",
fixed = {
{0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right
{-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left
{-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top
{0.4375, -0.5, -0.5625, 0.625, 1.4375, 0.5625}, --right
{-0.625, -0.5, -0.5625, -0.4375, 1.4375, 0.5625}, --left
{-0.625, 1.4375, -0.5625, 0.625, 1.625, 0.5625}, --top
}
},
after_place_node = function(pos, placer, itemstack, pointed_thing)
Expand Down Expand Up @@ -175,7 +175,7 @@ minetest.register_node("my_future_doors:door1d_"..col, {
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, -0.5, -0.5, -0.5},
{-0.5, -0.5, -0.5, -0.5, -0.5, -0.5},
}
},
})
Expand Down
8 changes: 4 additions & 4 deletions my_future_doors/sliding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local doors = {
{"my_future_doors:door8a","my_future_doors:door8b","my_future_doors:door8c","my_future_doors:door8d","8","Blue Steel"},
{"my_future_doors:door9a","my_future_doors:door9b","my_future_doors:door9c","my_future_doors:door9d","9","Tan Steel"},
}

local recipes = {
{{"default:steel_ingot", "default:steelblock", ""},
{"default:steel_ingot", "default:steel_ingot", ""},
Expand All @@ -30,7 +30,7 @@ local recipes = {
{{"default:steel_ingot", "default:steelblock", ""},
{"default:steel_ingot", "default:steel_ingot", "dye:brown"},
{ "default:steel_ingot", "default:steelblock",""}},
}
}
for i in ipairs (doors) do
local doora = doors[i][1]
local doorb = doors[i][2]
Expand All @@ -49,7 +49,7 @@ function onplace(itemstack, placer, pointed_thing)
not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or
not placer or
not placer:is_player() then
return
return
end
local pt = pointed_thing.above
local pt2 = {x=pt.x, y=pt.y, z=pt.z}
Expand Down Expand Up @@ -259,7 +259,7 @@ minetest.register_node(doord, {
selection_box = {
type = "fixed",
fixed = {
{0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0},
}
},
})
Expand Down
4 changes: 2 additions & 2 deletions my_garage_door/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ print(p2)
after_destruct = function(pos, oldnode)
minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name = "air"})
end,

on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local p2 = node.param2 --minetest.dir_to_facedir(player:get_look_dir())
local t1 = {x=pos.x,y=pos.y+1,z=pos.z}
Expand Down Expand Up @@ -103,7 +103,7 @@ minetest.register_node("my_garage_door:garage_door_open", {
}
},
selection_box = {type = "fixed",fixed = {{-1.5, 0.375, -0.5, 1.5, 0.5, 1.5},}},

on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local p2 = node.param2 --minetest.dir_to_facedir(player:get_look_dir())
local t1 = {x=pos.x,y=pos.y+1,z=pos.z}
Expand Down
4 changes: 1 addition & 3 deletions my_hidden_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local hdoor_list = { --Number , Description , default image
{ "cobble" , "Hidden Cobble Door", "default_cobble"},
{ "stone" , "Hidden Stone Door", "default_stone"},
{ "stone" , "Hidden Stone Door", "default_stone"},
{ "wood", "Hidden Wood Door", "default_wood"},
{ "stone_brick", "Hidden Stone Brick Door", "default_stone_brick"},
{ "brick", "Hidden Brick Door", "default_brick"},
Expand Down Expand Up @@ -116,5 +116,3 @@ minetest.register_craft({
{"my_door_wood:wood_dark_grey", "my_door_wood:wood_dark_grey", ""}
}
})


4 changes: 2 additions & 2 deletions my_misc_doors/bars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on_place = function(itemstack, placer, pointed_thing)
not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or
not placer or
not placer:is_player() then
return
return
end
local pt = pointed_thing.above
local pt2 = {x=pt.x, y=pt.y, z=pt.z}
Expand Down Expand Up @@ -215,7 +215,7 @@ minetest.register_node("my_misc_doors:door2d", {
selection_box = {
type = "fixed",
fixed = {
{0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0},
}
},
})
Expand Down
2 changes: 0 additions & 2 deletions my_misc_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dofile(minetest.get_modpath("my_misc_doors").."/locked.lua")
dofile(minetest.get_modpath("my_misc_doors").."/unlocked.lua")
dofile(minetest.get_modpath("my_misc_doors").."/bars.lua")


5 changes: 1 addition & 4 deletions my_misc_doors/locked.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local mdoor_list = { --Number , Description , Inven Image , Image
-- {"Misc Door 1" , "door1"},
-- {"Misc Door 2" , "door2"},
-- {"Misc Door 2" , "door2"},
{"Misc Door 3" , "door3"},
{"Misc Door 4" , "door4"},
-- {"Misc Door 5" , "door5"},
Expand Down Expand Up @@ -72,6 +72,3 @@ minetest.register_craft({
{"default:steel_ingot", "default:iron_lump", ""}
}
})



2 changes: 1 addition & 1 deletion my_misc_doors/unlocked.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local mdoor_list = { --Number , Description , Inven Image , Image
{"Misc Door 1" , "door1"},
{"Misc Door 2" , "door2"},
{"Misc Door 2" , "door2"},
-- {"Misc Door 3" , "door3"},
-- {"Misc Door 4" , "door4"},
{"Misc Door 5" , "door5"},
Expand Down
2 changes: 0 additions & 2 deletions my_old_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dofile(minetest.get_modpath("my_old_doors").."/locked.lua")
dofile(minetest.get_modpath("my_old_doors").."/unlocked.lua")


2 changes: 1 addition & 1 deletion my_old_doors/locked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
{ "1", "Old Door 1" , "old1"},
{ "2", "Old Door 2" , "old2"},
{ "3", "Old Door 3" , "old3"},
{ "4", "Old Door 4" , "old4"},
{ "4", "Old Door 4" , "old4"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
Expand Down
5 changes: 1 addition & 4 deletions my_old_doors/unlocked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image
-- { "1", "Old Door 1" , "old1"},
-- { "2", "Old Door 2" , "old2"},
-- { "3", "Old Door 3" , "old3"},
-- { "4", "Old Door 4" , "old4"},
-- { "4", "Old Door 4" , "old4"},
}
for i in ipairs(cdoor_list) do
local num = cdoor_list[i][1]
Expand Down Expand Up @@ -52,6 +52,3 @@ minetest.register_craft({
{"my_door_wood:wood_red", "my_door_wood:wood_red", ""}
}
})



2 changes: 1 addition & 1 deletion my_saloon_doors/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ on_place = function(itemstack, placer, pointed_thing)
not minetest.registered_nodes[minetest.get_node(pos2).name].buildable_to or
not placer or
not placer:is_player() then
return
return
end
return minetest.item_place(itemstack, placer, pointed_thing)
end,
Expand Down
Loading

0 comments on commit b567295

Please sign in to comment.