Remove unnecessary CSM warning (#8485)
authorParamat <paramat@users.noreply.github.com>
Sat, 27 Apr 2019 23:44:26 +0000 (00:44 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2019 23:44:26 +0000 (00:44 +0100)
src/client/client.cpp

index a4a379a731af7d88af2d222ce3e79b38819fcb1c..78e077fc3954b15a4708c3bc092f3834c37e4fb3 100644 (file)
@@ -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;
        }