diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 02:55:54 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-03 02:55:54 +0200 |
commit | 324c5449224e010a2cebbebff11fba2f2b96d7b0 (patch) | |
tree | cbd2b3c240d141dfa08c57c8cd107b0f95d1e430 | |
parent | fbbbcf97d8fd8279bb99325506b7aae742f30c23 (diff) | |
download | minetest-324c5449224e010a2cebbebff11fba2f2b96d7b0.tar.gz minetest-324c5449224e010a2cebbebff11fba2f2b96d7b0.tar.bz2 minetest-324c5449224e010a2cebbebff11fba2f2b96d7b0.zip |
Add world/mods to mod search path
-rw-r--r-- | src/server.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 19138e52e..795b35b34 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 |