mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
Add comment and remove empty lines
This commit is contained in:
parent
701215c22f
commit
2b840fbe38
@ -18,14 +18,12 @@ if input then
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
for name, _ in pairs(armor.config) do
|
||||
local global = "ARMOR_"..name:upper()
|
||||
if minetest.global_exists(global) then
|
||||
armor.config[name] = _G[global]
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.global_exists("ARMOR_MATERIALS") then
|
||||
armor.materials = table.copy(ARMOR_MATERIALS)
|
||||
end
|
||||
@ -33,6 +31,8 @@ if minetest.global_exists("ARMOR_FIRE_NODES") then
|
||||
armor.fire_nodes = table.copy(ARMOR_FIRE_NODES)
|
||||
end
|
||||
|
||||
-- Load Configuration
|
||||
|
||||
for name, config in pairs(armor.config) do
|
||||
local setting = minetest.setting_get("armor_"..name)
|
||||
if type(config) == "number" then
|
||||
@ -44,7 +44,6 @@ for name, config in pairs(armor.config) do
|
||||
armor.config[name] = setting
|
||||
end
|
||||
end
|
||||
|
||||
for material, _ in pairs(armor.materials) do
|
||||
local key = "material_"..material
|
||||
if armor.config[key] == false then
|
||||
|
Loading…
Reference in New Issue
Block a user