Version parse fix

This commit is contained in:
Anuken
2020-12-23 14:37:39 -05:00
parent a21cc32be9
commit f5c270347c
2 changed files with 11 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ public class Version{
int dot = str.indexOf('.');
if(dot != -1){
int major = Strings.parseInt(str.substring(0, dot)), minor = Strings.parseInt(str.substring(dot + 1));
int major = Strings.parseInt(str.substring(0, dot), 0), minor = Strings.parseInt(str.substring(dot + 1), 0);
return build >= major && revision >= minor;
}else{
return build >= Strings.parseInt(str, 0);