minetest/builtin/client/misc.lua
AFCMS 6ec6acc539
Add minetest.settings to CSM API and allow CSMs to provide settingtypes.txt ()
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-08-02 11:58:08 +02:00

8 lines
150 B
Lua

function core.setting_get_pos(name)
local value = core.settings:get(name)
if not value then
return nil
end
return core.string_to_pos(value)
end