From: Paramat Date: Sat, 27 Apr 2019 23:44:26 +0000 (+0100) Subject: Remove unnecessary CSM warning (#8485) X-Git-Tag: 5.1.0~229 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad8d68c06aa67ba6d9249f583b9cbb9a60fe1e02;p=oweals%2Fminetest.git Remove unnecessary CSM warning (#8485) --- 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; }