From 6a93cf8aaef1cc56f518f12a6d160f65391676be Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+chomens@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:11:53 +0700 Subject: [PATCH] fix: MORE FIXIES FOR NBOT --- .../chipmunk/chipmunkmod/util/BotValidationUtilities.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkmod/util/BotValidationUtilities.java b/src/main/java/land/chipmunk/chipmunkmod/util/BotValidationUtilities.java index a0debb1..9998051 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/util/BotValidationUtilities.java +++ b/src/main/java/land/chipmunk/chipmunkmod/util/BotValidationUtilities.java @@ -168,9 +168,9 @@ public class BotValidationUtilities { byte[] hash = md.digest(); - ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 5); - int bigInt = Math.abs(buffer.getInt()); - String stringHash = Integer.toString(bigInt, 36); + ByteBuffer buffer = ByteBuffer.wrap(hash, 0, 4); + long bigInt = (buffer.getInt() & 0xFFFFFFFFL);; + String stringHash = Long.toString(bigInt, 36); final String[] restArguments = Arrays.copyOfRange(arguments, 1, arguments.length);