adventures/init.lua

20 lines
648 B
Lua
Raw Normal View History

2013-01-03 19:31:49 -08:00
--run Files
local init = io.open(minetest.get_worldpath().."/adventures_init", "w")
if(init == nil) then
init:write("initialized")
2013-01-03 19:31:49 -08:00
init:close()
local file = io.open(minetest.get_worldpath().."/adventures_sources", "w")
file:write("initialized")
file:close()
local file = io.open(minetest.get_worldpath().."/adventures_previousmode", "w")
file:write("initialized")
2013-01-03 19:31:49 -08:00
file:close()
end
local modpath=minetest.get_modpath("adventures")
dofile(modpath.."/decode.lua")
dofile(modpath.."/tables.lua")
local creative = minetest.setting_get("creative_mode")
if creative then dofile(modpath.."/creative.lua")
else dofile(modpath.."/standard.lua")
end