From 68d69fb9327a80a1e755ca2a1eec185453401e29 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 10 Feb 2017 18:35:16 +0000 Subject: Added settings.conf example for permanent settings --- init.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'init.lua') 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") -- cgit v1.2.3