1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-27 15:10:20 +01:00

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"),
}
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