fix importance resolving in disabled mods

This commit is contained in:
altalk23 2024-10-01 15:26:56 +03:00
parent 8be97b73c9
commit d40ba6d558

View file

@ -57,7 +57,7 @@ bool ModMetadata::Dependency::isResolved() const {
bool ModMetadata::Incompatibility::isResolved() const { bool ModMetadata::Incompatibility::isResolved() const {
return this->importance != Importance::Breaking || return this->importance != Importance::Breaking ||
(!this->mod || !this->version.compare(this->mod->getVersion())); (!this->mod || !this->mod->isEnabled() || !this->version.compare(this->mod->getVersion()));
} }
static std::string sanitizeDetailsData(std::string const& str) { static std::string sanitizeDetailsData(std::string const& str) {