fix: MORE FIXIES FOR NBOT

This commit is contained in:
Chayapak 2024-11-10 15:11:53 +07:00
parent 285513a332
commit 6a93cf8aae
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -168,9 +168,9 @@ public class BotValidationUtilities {
byte[] hash = md.digest(); byte[] hash = md.digest();
ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 5); ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 4);
int bigInt = Math.abs(buffer.getInt()); long bigInt = (buffer.getInt() & 0xFFFFFFFFL);;
String stringHash = Integer.toString(bigInt, 36); String stringHash = Long.toString(bigInt, 36);
final String[] restArguments = Arrays.copyOfRange(arguments, 1, arguments.length); final String[] restArguments = Arrays.copyOfRange(arguments, 1, arguments.length);