Sane defaults for the boolean settings.

This commit is contained in:
Quentin Quaadgras 2018-04-23 22:53:17 +12:00
parent 0e5f469c3b
commit 1b4cc3e94c

View File

@ -15,6 +15,18 @@ snow = {
disable_mapgen = minetest.settings:get_bool("disable_mapgen"), disable_mapgen = minetest.settings:get_bool("disable_mapgen"),
} }
if snow.sleds == nil then
snow.sleds = true
end
if snow.debug == nil then
snow.debug = false
end
if snow.disable_mapgen == nil then
snow.disable_mapgen = true
end
-- functions for dynamically changing settings -- functions for dynamically changing settings
local on_configurings,n = {},1 local on_configurings,n = {},1