Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 5b7bc00

Browse files
committed
Fixed that up-to-date mods showed up in the updatable section
1 parent c386e38 commit 5b7bc00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/xyz/deathsgun/modmanager/services/UpdateCheckService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ private ModVersion getUpdateVersion(String modId, ModMetadata container) throws
100100
latestVersion = version;
101101
}
102102
}
103-
if (latest == null) {
103+
if (latest == null || installedVersion.compareTo(latestVersion) == 0) {
104104
logger.info("No update for {} found!", container.getId());
105+
return null;
105106
}
106107
return latest;
107108
}

0 commit comments

Comments
 (0)