mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-02-17 00:52:30 +01:00
Bugfix: recognise boolean false in configuration
This commit is contained in:
@ -44,7 +44,7 @@ for name, config in pairs(armor.config) do
|
|||||||
elseif type(config) == "boolean" then
|
elseif type(config) == "boolean" then
|
||||||
setting = minetest.setting_getbool("armor_"..name)
|
setting = minetest.setting_getbool("armor_"..name)
|
||||||
end
|
end
|
||||||
if setting then
|
if setting ~= nil then
|
||||||
armor.config[name] = setting
|
armor.config[name] = setting
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user