forked from Mirrorlandia_minetest/minetest
Deprecate loading a world with unresolved dependencies (#12541)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
5cc7329717
commit
4648d8f499
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user