launcher version dropdown: fix wrong sorting of versions

This commit is contained in:
Bixilon 2020-11-03 15:46:52 +01:00
parent aec14fa573
commit 7fe2cacbef
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -39,7 +39,7 @@ public class GUITools {
if (a.getVersionId() == -1) { if (a.getVersionId() == -1) {
return -Integer.MAX_VALUE; return -Integer.MAX_VALUE;
} }
return (a.getVersionId() - b.getVersionId()); return -(a.getVersionId() - b.getVersionId());
}); });
} }