mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-11 14:49:23 +02:00
Add check for mod compatibilty
This commit is contained in:
parent
420f358599
commit
d1b13a0fe4
@ -763,6 +763,9 @@ void ModDependenciesResolver::tryAddMods(TModList modsToResolve, const ModsStora
|
||||
if (mod.isTranslation() && CGeneralTextHandler::getPreferredLanguage() != mod.getBaseLanguage())
|
||||
return false;
|
||||
|
||||
if(!mod.isCompatible())
|
||||
return false;
|
||||
|
||||
if(mod.getDependencies().size() > resolvedModIDs.size())
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user