]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/server/mods.cpp
Use virtual paths to specify exact mod to enable (#11784)
[dragonfireclient.git] / src / server / mods.cpp
index 609d8c3462dcf028592a83a6035f794787f36ec1..ba76d47464f1ccf1ff00cd950909085b54308dd0 100644 (file)
@@ -41,8 +41,10 @@ ServerModManager::ServerModManager(const std::string &worldpath) :
        SubgameSpec gamespec = findWorldSubgame(worldpath);
 
        // Add all game mods and all world mods
-       addModsInPath(gamespec.gamemods_path);
-       addModsInPath(worldpath + DIR_DELIM + "worldmods");
+       std::string game_virtual_path;
+       game_virtual_path.append("games/").append(gamespec.id).append("/mods");
+       addModsInPath(gamespec.gamemods_path, game_virtual_path);
+       addModsInPath(worldpath + DIR_DELIM + "worldmods", "worldmods");
 
        // Load normal mods
        std::string worldmt = worldpath + DIR_DELIM + "world.mt";