Code styling

This commit is contained in:
stujones11 2017-04-13 20:11:15 +01:00
parent de2c47f334
commit db312b3245

@ -1,6 +1,29 @@
local skin_previews = {} local skin_previews = {}
local use_player_monoids = minetest.global_exists("player_monoids") local use_player_monoids = minetest.global_exists("player_monoids")
local use_armor_monoid = minetest.global_exists("armor_monoid") local use_armor_monoid = minetest.global_exists("armor_monoid")
local armor_def = setmetatable({}, {
__index = function()
return setmetatable({
groups = setmetatable({}, {
__index = function()
return 0
end})
}, {
__index = function()
return 0
end
})
end,
})
local armor_textures = setmetatable({}, {
__index = function()
return setmetatable({}, {
__index = function()
return "blank.png"
end
})
end
})
armor = { armor = {
timer = 0, timer = 0,
@ -14,29 +37,8 @@ armor = {
default.get_hotbar_bg(0, 4.7).. default.get_hotbar_bg(0, 4.7)..
"list[current_player;main;0,4.7;8,1;]".. "list[current_player;main;0,4.7;8,1;]"..
"list[current_player;main;0,5.85;8,3;8]", "list[current_player;main;0,5.85;8,3;8]",
def = setmetatable({}, { def = armor_def,
__index = function() textures = armor_textures,
return setmetatable({
groups = setmetatable({}, {
__index = function()
return 0
end})
}, {
__index = function()
return 0
end
})
end,
}),
textures = setmetatable({}, {
__index = function()
return setmetatable({}, {
__index = function()
return "blank.png"
end
})
end
}),
default_skin = "character", default_skin = "character",
materials = { materials = {
wood = "group:wood", wood = "group:wood",