mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Better Mathman#isInteger
This commit is contained in:
parent
00a6a2d917
commit
3e4f1d5cd8
@ -355,14 +355,14 @@ public class MathMan {
|
||||
//VERY basic check for >< int min/max value without spending time trying to parse the int
|
||||
} else if (length > 11) {
|
||||
return false;
|
||||
} else if (length == 11 && str.charAt(0) > '2' && str.charAt(0) > '1') {
|
||||
} else if (length == 11 && (str.charAt(0) > '2' || str.charAt(0) < '0') && (str.charAt(1) > '1' || str.charAt(1) < '0')) {
|
||||
return false;
|
||||
}
|
||||
i = 1;
|
||||
//VERY basic check for >< int min/max value without spending time trying to parse the int
|
||||
} else if (length > 10) {
|
||||
return false;
|
||||
} else if (length == 10 && str.charAt(0) > '2' && str.charAt(0) > '1') {
|
||||
} else if (length == 10 && (str.charAt(0) > '2' || str.charAt(0) < '0') && (str.charAt(1) > '1' || str.charAt(1) < '0')) {
|
||||
return false;
|
||||
}
|
||||
for (; i < length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user