mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2024-08-20 13:14:04 +02:00
moremesecons.setting: fix wrong type name
"bool" instead of "boolean"
This commit is contained in:
parent
b79147065a
commit
ea81d826b9
@ -3,7 +3,7 @@ moremesecons = {}
|
|||||||
function moremesecons.setting(modname, settingname, default, min, val_under_min)
|
function moremesecons.setting(modname, settingname, default, min, val_under_min)
|
||||||
local setting = "moremesecons_" .. modname .. "." .. settingname
|
local setting = "moremesecons_" .. modname .. "." .. settingname
|
||||||
|
|
||||||
if type(default) == "bool" then
|
if type(default) == "boolean" then
|
||||||
local ret = minetest.setting_getbool(setting)
|
local ret = minetest.setting_getbool(setting)
|
||||||
if ret == nil then
|
if ret == nil then
|
||||||
ret = default
|
ret = default
|
||||||
|
Loading…
Reference in New Issue
Block a user