Deprecate loading a world with unresolved dependencies (#12541)

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
rubenwardy 2022-07-17 14:45:20 +01:00 committed by GitHub
parent 5cc7329717
commit 4648d8f499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -425,9 +425,14 @@ void Server::init()
m_modmgr = std::make_unique<ServerModManager>(m_path_world); m_modmgr = std::make_unique<ServerModManager>(m_path_world);
std::vector<ModSpec> unsatisfied_mods = m_modmgr->getUnsatisfiedMods(); std::vector<ModSpec> unsatisfied_mods = m_modmgr->getUnsatisfiedMods();
// complain about mods with unsatisfied dependencies // complain about mods with unsatisfied dependencies
if (!m_modmgr->isConsistent()) { if (!m_modmgr->isConsistent()) {
m_modmgr->printUnsatisfiedModsError(); m_modmgr->printUnsatisfiedModsError();
warningstream
<< "You have unsatisfied dependencies, loading your world anyway. "
<< "This will become a fatal error in the future." << std::endl;
} }
//lock environment //lock environment