mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-25 00:48:52 -05:00
Add world/mods to mod search path
This commit is contained in:
parent
fbbbcf97d8
commit
324c544922
@ -965,8 +965,11 @@ Server::Server(
|
|||||||
|
|
||||||
// Path to builtin.lua
|
// Path to builtin.lua
|
||||||
std::string builtinpath = porting::path_data + DIR_DELIM + "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");
|
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
|
// Initialize scripting
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user