mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 08:50:22 +02:00
Mods: Combine mod loading checks and deprection logging (#11503)
This limits the logged deprecation messages to the mods that are loaded Unifies the mod naming convention check for CSM & SSM
This commit is contained in:
@ -177,11 +177,7 @@ void Client::loadMods()
|
||||
|
||||
// Load "mod" scripts
|
||||
for (const ModSpec &mod : m_mods) {
|
||||
if (!string_allowed(mod.name, MODNAME_ALLOWED_CHARS)) {
|
||||
throw ModError("Error loading mod \"" + mod.name +
|
||||
"\": Mod name does not follow naming conventions: "
|
||||
"Only characters [a-z0-9_] are allowed.");
|
||||
}
|
||||
mod.checkAndLog();
|
||||
scanModIntoMemory(mod.name, mod.path);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user