Skip to content

Commit

Permalink
only consider user disabled mods for incompats
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Dec 29, 2024
1 parent d9d8a12 commit 2545003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loader/src/loader/LoaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ void Loader::Impl::findProblems() {
}

for (auto const& dep : mod->getMetadata().getIncompatibilities()) {
if (!dep.mod || !dep.version.compare(dep.mod->getVersion()) || !dep.mod->isEnabled())
if (!dep.mod || !dep.version.compare(dep.mod->getVersion()) || !dep.mod->shouldLoad())
continue;
switch(dep.importance) {
case ModMetadata::Incompatibility::Importance::Conflicting: {
Expand Down
2 changes: 1 addition & 1 deletion loader/src/loader/ModMetadataImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool ModMetadata::Dependency::isResolved() const {

bool ModMetadata::Incompatibility::isResolved() const {
return this->importance != Importance::Breaking ||
(!this->mod || !this->version.compare(this->mod->getVersion()));
(!this->mod || !this->version.compare(this->mod->getVersion()) || !this->mod->shouldLoad());
}

static std::string sanitizeDetailsData(std::string const& str) {
Expand Down

0 comments on commit 2545003

Please sign in to comment.