moremesecons.setting: fix wrong type name

"bool" instead of "boolean"
This commit is contained in:
upsilon 2017-04-19 13:27:06 +02:00
parent b79147065a
commit ea81d826b9
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ moremesecons = {}
function moremesecons.setting(modname, settingname, default, min, val_under_min)
local setting = "moremesecons_" .. modname .. "." .. settingname
if type(default) == "bool" then
if type(default) == "boolean" then
local ret = minetest.setting_getbool(setting)
if ret == nil then
ret = default