Deprecate loading a world with unresolved dependencies (#12541)

Co-authored-by: sfan5 <sfan5@live.de>
master
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
1 changed files with 5 additions and 0 deletions

View File

@ -425,9 +425,14 @@ void Server::init()
m_modmgr = std::make_unique<ServerModManager>(m_path_world);
std::vector<ModSpec> unsatisfied_mods = m_modmgr->getUnsatisfiedMods();
// complain about mods with unsatisfied dependencies
if (!m_modmgr->isConsistent()) {
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