mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
This commit is contained in:
parent
606c043bf0
commit
b450f4d05a
@ -1019,7 +1019,7 @@ public class Util extends Queue {
|
||||
if (version.contains("-beta-")) {
|
||||
version = version.split(";")[0];
|
||||
version = version.split("-beta-")[1];
|
||||
int value = Integer.parseInt(version.replaceAll("[^0-9]", ""));
|
||||
long value = Long.parseLong(version.replaceAll("[^0-9]", ""));
|
||||
if (value < 6) {
|
||||
validVersion = false;
|
||||
}
|
||||
@ -1033,7 +1033,7 @@ public class Util extends Queue {
|
||||
}
|
||||
|
||||
if (version.contains("-")) {
|
||||
int value = Integer.parseInt(((version.split("-"))[0]).replaceAll("[^0-9]", ""));
|
||||
long value = Long.parseLong(((version.split("-"))[0]).replaceAll("[^0-9]", ""));
|
||||
if (value > 0 && value < 4268) {
|
||||
validVersion = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user