3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 11:00:04 +01:00

Better Mathman#isInteger

Dieser Commit ist enthalten in:
dordsor21 2021-08-11 20:38:52 +01:00
Ursprung 00a6a2d917
Commit 3e4f1d5cd8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -355,14 +355,14 @@ public class MathMan {
//VERY basic check for >< int min/max value without spending time trying to parse the int //VERY basic check for >< int min/max value without spending time trying to parse the int
} else if (length > 11) { } else if (length > 11) {
return false; 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; return false;
} }
i = 1; i = 1;
//VERY basic check for >< int min/max value without spending time trying to parse the int //VERY basic check for >< int min/max value without spending time trying to parse the int
} else if (length > 10) { } else if (length > 10) {
return false; 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; return false;
} }
for (; i < length; i++) { for (; i < length; i++) {