mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Prevent loading a world with unresolved dependencies (#12542)
This commit is contained in:
parent
8c29c4f620
commit
2d10fa7867
5 changed files with 23 additions and 15 deletions
|
@ -213,9 +213,10 @@ void Client::loadMods()
|
|||
}
|
||||
|
||||
m_mods = modconf.getMods();
|
||||
|
||||
// complain about mods with unsatisfied dependencies
|
||||
if (!modconf.isConsistent()) {
|
||||
modconf.printUnsatisfiedModsError();
|
||||
errorstream << modconf.getUnsatisfiedModsError() << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue