summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-02-10 18:35:16 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-02-10 18:35:16 +0000
commit68d69fb9327a80a1e755ca2a1eec185453401e29 (patch)
tree3ae2cd72b1e058a228bd1e4dac356080bf00c92e /init.lua
parentde078f3ce3752dade2654db4d1f4c66186a0c723 (diff)
Added settings.conf example for permanent settings
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 074394d..a228e62 100644
--- a/init.lua
+++ b/init.lua
@@ -43,6 +43,18 @@ ethereal.savannah = 1 -- Dry yellow grass with acacia tree's
ethereal.fiery = 1 -- Red grass with lava craters
ethereal.sandclay = 1 -- Sand areas with clay underneath
ethereal.swamp = 1 -- Swamp areas with vines on tree's, mushrooms, lilly's and clay sand
+ethereal.sealife = 1 -- Enable coral and seaweed
+ethereal.reefs = 1 -- Enable new coral reefs in default
+
+local path = minetest.get_modpath("ethereal")
+
+-- Load new settings if found
+local input = io.open(path.."/settings.conf", "r")
+if input then
+ dofile(path .. "/settings.conf")
+ input:close()
+ input = nil
+end
-- Intllib
local S
@@ -56,8 +68,6 @@ ethereal.intllib = S
-- Falling node function
ethereal.check_falling = minetest.check_for_falling or nodeupdate
-local path = minetest.get_modpath("ethereal")
-
dofile(path .. "/plantlife.lua")
dofile(path .. "/mushroom.lua")
dofile(path .. "/onion.lua")