From: Perttu Ahola Date: Sat, 3 Dec 2011 00:55:54 +0000 (+0200) Subject: Add world/mods to mod search path X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=324c5449224e010a2cebbebff11fba2f2b96d7b0;p=zefram%2Fminetest%2Fminetest_engine.git Add world/mods to mod search path --- diff --git a/src/server.cpp b/src/server.cpp index 19138e52..795b35b3 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -965,8 +965,11 @@ Server::Server( // Path to builtin.lua std::string builtinpath = porting::path_data + DIR_DELIM + "builtin.lua"; - // Add default global mod path + + // Add default global mod search path m_modspaths.push_back(porting::path_data + DIR_DELIM + "mods"); + // Add world mod search path + m_modspaths.push_back(mapsavedir + DIR_DELIM + "mods"); // Initialize scripting