minetest-mm/mods/mycorners/init.lua

31 lines
855 B
Lua
Raw Normal View History

2020-10-25 19:05:08 +01:00
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")
dofile(minetest.get_modpath("mycorners").."/machine.lua")
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")
dofile(minetest.get_modpath("mycorners").."/register.lua")
else
dofile(minetest.get_modpath("mycorners").."/nodes_light.lua")
dofile(minetest.get_modpath("mycorners").."/machine_light.lua")
dofile(minetest.get_modpath("mycorners").."/register_light.lua")
end