diff --git a/Core/NWNXCore.cpp b/Core/NWNXCore.cpp index e8806c01f77..d223f2cb3fe 100644 --- a/Core/NWNXCore.cpp +++ b/Core/NWNXCore.cpp @@ -340,17 +340,18 @@ void NWNXCore::CreateServerHandler(API::CAppManager* app) if (g_core->m_coreServices->m_config->Get("SKIP", false)) { LOG_INFO("Not loading NWNX due to configuration."); - return; - } - - try - { - g_core->InitialSetupHooks(); - g_core->InitialSetupPlugins(); } - catch (const std::runtime_error& ex) + else { - LOG_FATAL("The server encountered a fatal error '%s' during setup and must now terminate.", ex.what()); + try + { + g_core->InitialSetupHooks(); + g_core->InitialSetupPlugins(); + } + catch (const std::runtime_error& ex) + { + LOG_FATAL("The server encountered a fatal error '%s' during setup and must now terminate.", ex.what()); + } } g_core->m_createServerHook.reset();