mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 06:13:45 +01:00
Bugfix: recognise boolean false in configuration
This commit is contained in:
parent
5dab1ca887
commit
1e059f2557
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user