Skip to content

Commit 6c22dc1

Browse files
committed
fix: flipped condition
1 parent 4bea636 commit 6c22dc1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/dev/dfonline/flint/util/FlintUpdate.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ public static void sendUpdateMessage() {
8080
int latestVersion = Integer.parseInt(FlintUpdate.latestVersion.substring(1));
8181
// Current version does not start with a v.
8282
int currentVersion = Integer.parseInt(MOD_VERSION);
83-
// The string parsed to an integer, now compare.
84-
if (latestVersion - currentVersion > 5) {
83+
84+
// Ignore if outdated for less than 5 versions.
85+
if (latestVersion - currentVersion < 5) {
8586
return;
8687
}
8788
// We are outdated, inform the user.

0 commit comments

Comments
 (0)