We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bea636 commit 6c22dc1Copy full SHA for 6c22dc1
1 file changed
src/main/java/dev/dfonline/flint/util/FlintUpdate.java
@@ -80,8 +80,9 @@ public static void sendUpdateMessage() {
80
int latestVersion = Integer.parseInt(FlintUpdate.latestVersion.substring(1));
81
// Current version does not start with a v.
82
int currentVersion = Integer.parseInt(MOD_VERSION);
83
- // The string parsed to an integer, now compare.
84
- if (latestVersion - currentVersion > 5) {
+
+ // Ignore if outdated for less than 5 versions.
85
+ if (latestVersion - currentVersion < 5) {
86
return;
87
}
88
// We are outdated, inform the user.
0 commit comments