forked from mtcontrib/minetest-mod-snow
Sane defaults for the boolean settings.
This commit is contained in:
parent
0e5f469c3b
commit
1b4cc3e94c
12
src/util.lua
12
src/util.lua
@ -15,6 +15,18 @@ snow = {
|
||||
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
|
||||
|
||||
local on_configurings,n = {},1
|
||||
|
Loading…
Reference in New Issue
Block a user