From 1e059f2557ef28a8a93d81e5fe3b694c8c3d261c Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 5 Apr 2017 17:51:50 +0100 Subject: [PATCH] Bugfix: recognise boolean false in configuration --- 3d_armor/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index 4978d11..f7f646b 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -44,7 +44,7 @@ for name, config in pairs(armor.config) do elseif type(config) == "boolean" then setting = minetest.setting_getbool("armor_"..name) end - if setting then + if setting ~= nil then armor.config[name] = setting end end