mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 03:29:53 +00:00
Fix update checker when current version is higher than latest
This commit is contained in:
parent
8c0ee81c4c
commit
ed6787ffaa
1 changed files with 7 additions and 3 deletions
|
@ -68,10 +68,14 @@ public class PluginUpdateManager extends Manager implements Listener {
|
|||
}
|
||||
|
||||
// Compare pieces from most significant to least significant
|
||||
for (int i = 0; i < latestSplit.length; i++)
|
||||
if (latestSplit[i] > currentSplit[i])
|
||||
for (int i = 0; i < latestSplit.length; i++) {
|
||||
if (latestSplit[i] > currentSplit[i]) {
|
||||
return true;
|
||||
|
||||
} else if (currentSplit[i] > latestSplit[i]) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue