Skip to content

Commit

Permalink
Deprecate loading a world with unresolved dependencies (#12541)
Browse files Browse the repository at this point in the history
Co-authored-by: sfan5 <sfan5@live.de>
  • Loading branch information
rubenwardy and sfan5 committed Jul 17, 2022
1 parent 5cc7329 commit 4648d8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 4648d8f

Please sign in to comment.