Sfoglia il codice sorgente

Add check for mod compatibilty

Ivan Savenko 8 mesi fa
parent
commit
d1b13a0fe4
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      lib/modding/ModManager.cpp

+ 3 - 0
lib/modding/ModManager.cpp

@@ -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;