Skip to content

Commit

Permalink
Remove unnecessary CSM warning (#8485)
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Apr 27, 2019
1 parent b839a6d commit ad8d68c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/client/client.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit ad8d68c

Please sign in to comment.