From 1b4cc3e94c7d176e0f8e04b7b5748b5cfddaca0c Mon Sep 17 00:00:00 2001 From: Quentin Quaadgras Date: Mon, 23 Apr 2018 22:53:17 +1200 Subject: [PATCH] Sane defaults for the boolean settings. --- src/util.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/util.lua b/src/util.lua index 6c6831c..0434654 100644 --- a/src/util.lua +++ b/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