Fix update checker when current version is higher than latest

This commit is contained in:
Esophose 2020-02-01 17:49:25 -07:00
parent 8c0ee81c4c
commit ed6787ffaa

View file

@ -68,10 +68,14 @@ public class PluginUpdateManager extends Manager implements Listener {
} }
// Compare pieces from most significant to least significant // Compare pieces from most significant to least significant
for (int i = 0; i < latestSplit.length; i++) for (int i = 0; i < latestSplit.length; i++) {
if (latestSplit[i] > currentSplit[i]) if (latestSplit[i] > currentSplit[i]) {
return true; return true;
} else if (currentSplit[i] > latestSplit[i]) {
break;
}
}
return false; return false;
} }