From 2b840fbe38819308a8f0072fedf184613a3e8ac7 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sat, 18 Mar 2017 18:04:10 +0000 Subject: [PATCH] Add comment and remove empty lines --- 3d_armor/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index 95cbab1..ace9871 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -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