diff --git a/init.lua b/init.lua index 9d65ea6..ca50a9c 100755 --- a/init.lua +++ b/init.lua @@ -1,22 +1,23 @@ local version = "4.2.0-dev" +local modpath = minetest.get_modpath("arena_lib") -dofile(minetest.get_modpath("arena_lib") .. "/api.lua") -dofile(minetest.get_modpath("arena_lib") .. "/callbacks.lua") -dofile(minetest.get_modpath("arena_lib") .. "/chat.lua") -dofile(minetest.get_modpath("arena_lib") .. "/commands.lua") -dofile(minetest.get_modpath("arena_lib") .. "/debug_utilities.lua") -dofile(minetest.get_modpath("arena_lib") .. "/player_manager.lua") -dofile(minetest.get_modpath("arena_lib") .. "/privs.lua") -dofile(minetest.get_modpath("arena_lib") .. "/signs.lua") -dofile(minetest.get_modpath("arena_lib") .. "/utils.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_dependencies/parties.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/editor_main.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/editor_icons.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/tools_players.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/tools_settings.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/tools_sign.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_editor/tools_spawner.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_hud/hud_main.lua") -dofile(minetest.get_modpath("arena_lib") .. "/_hud/hud_waypoints.lua") +dofile(modpath .. "/api.lua") +dofile(modpath .. "/callbacks.lua") +dofile(modpath .. "/chat.lua") +dofile(modpath .. "/commands.lua") +dofile(modpath .. "/debug_utilities.lua") +dofile(modpath .. "/player_manager.lua") +dofile(modpath .. "/privs.lua") +dofile(modpath .. "/signs.lua") +dofile(modpath .. "/utils.lua") +dofile(modpath .. "/_dependencies/parties.lua") +dofile(modpath .. "/_editor/editor_main.lua") +dofile(modpath .. "/_editor/editor_icons.lua") +dofile(modpath .. "/_editor/tools_players.lua") +dofile(modpath .. "/_editor/tools_settings.lua") +dofile(modpath .. "/_editor/tools_sign.lua") +dofile(modpath .. "/_editor/tools_spawner.lua") +dofile(modpath .. "/_hud/hud_main.lua") +dofile(modpath .. "/_hud/hud_waypoints.lua") minetest.log("action", "[ARENA_LIB] Mod initialised, running version " .. version)