From b9882901a9d3ce74e94745856db8bc8fa01dff87 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Fri, 18 Mar 2016 19:10:38 -0700 Subject: [PATCH] changed to mintest.conf for setting --- init.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index b5b3787..cbe58c2 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,6 @@ ---Change this to true is you want all the colors and false for 4 colors -local all_colors = false - +if minetest.setting_get("mycorners_all_colors") == false then + minetest.setting_set("mycorners_all_colors","false") +end mycorners = {} dofile(minetest.get_modpath("mycorners").."/cornertool.lua") @@ -8,7 +8,13 @@ dofile(minetest.get_modpath("mycorners").."/machine.lua") -if all_colors == true then +local settings = minetest.setting_get("mycorners_all_colors") or nil + if settings == nil then + settings = minetest.setting_set("mycorners_all_colors","false") + settings = "false" + end + +if settings == true then dofile(minetest.get_modpath("mycorners").."/nodes.lua") dofile(minetest.get_modpath("mycorners").."/machine.lua")