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);