mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Allow game to specify first and last mod in mod loading order (#14177)
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
@@ -121,7 +121,8 @@ void TestServerModManager::testGetMods()
|
||||
{
|
||||
ServerModManager sm(m_worlddir);
|
||||
const auto &mods = sm.getMods();
|
||||
UASSERTEQ(bool, mods.empty(), false);
|
||||
// `ls ./games/devtest/mods | wc -l` + 1 (test mod)
|
||||
UASSERTEQ(std::size_t, mods.size(), 31 + 1);
|
||||
|
||||
// Ensure we found basenodes mod (part of devtest)
|
||||
// and test_mod (for testing MINETEST_MOD_PATH).
|
||||
@@ -139,6 +140,9 @@ void TestServerModManager::testGetMods()
|
||||
|
||||
UASSERTEQ(bool, default_found, true);
|
||||
UASSERTEQ(bool, test_mod_found, true);
|
||||
|
||||
UASSERT(mods.front().name == "first_mod");
|
||||
UASSERT(mods.back().name == "last_mod");
|
||||
}
|
||||
|
||||
void TestServerModManager::testGetModspec()
|
||||
|
Reference in New Issue
Block a user