mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2024-12-29 00:47:33 +01: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)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user