aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-07-31 19:54:52 +0200
committerGitHub <noreply@github.com>2021-07-31 19:54:52 +0200
commit32cb9d0828828da3068259c9e0a3c0f5da170439 (patch)
tree7a768f3ffca8309b595db10102773c249db37c41 /src/client
parente7cd4cfa25485610c05a906859e8365158a13f69 (diff)
downloadhax-minetest-server-32cb9d0828828da3068259c9e0a3c0f5da170439.tar.gz
hax-minetest-server-32cb9d0828828da3068259c9e0a3c0f5da170439.zip
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
Diffstat (limited to '')
-rw-r--r--src/client/client.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 17661c242..923369afe 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -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);
}