aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-04-28 00:44:26 +0100
committerGitHub <noreply@github.com>2019-04-28 00:44:26 +0100
commitad8d68c06aa67ba6d9249f583b9cbb9a60fe1e02 (patch)
treef8ca7f030120d35a32902307a8e507f62ae40ddd
parentb839a6dd5425c334e6528ae230f05ca5b15cc3a1 (diff)
downloadminetest-ad8d68c06aa67ba6d9249f583b9cbb9a60fe1e02.tar.gz
minetest-ad8d68c06aa67ba6d9249f583b9cbb9a60fe1e02.tar.bz2
minetest-ad8d68c06aa67ba6d9249f583b9cbb9a60fe1e02.zip
Remove unnecessary CSM warning (#8485)
-rw-r--r--src/client/client.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index a4a379a73..78e077fc3 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -121,15 +121,10 @@ Client::Client(
void Client::loadMods()
{
- // Don't load mods twice
- if (m_mods_loaded) {
- return;
- }
-
+ // Don't load mods twice.
// If client scripting is disabled by the client, don't load builtin or
// client-provided mods.
- if (!m_modding_enabled) {
- warningstream << "Client side scripting is disabled by client." << std::endl;
+ if (m_mods_loaded || !m_modding_enabled) {
return;
}