From 43c15fed3e13a972c23e6b4a1da1ab76174ead8e Mon Sep 17 00:00:00 2001 From: WiredSpast <74211155+WiredSpast@users.noreply.github.com> Date: Fri, 24 Feb 2023 17:30:23 +0100 Subject: [PATCH] Potential fix --- .../protocol/memory/habboclient/macOs/MacOsHabboClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/G-Earth/src/main/java/gearth/protocol/memory/habboclient/macOs/MacOsHabboClient.java b/G-Earth/src/main/java/gearth/protocol/memory/habboclient/macOs/MacOsHabboClient.java index 5cdcd0f..1c20100 100644 --- a/G-Earth/src/main/java/gearth/protocol/memory/habboclient/macOs/MacOsHabboClient.java +++ b/G-Earth/src/main/java/gearth/protocol/memory/habboclient/macOs/MacOsHabboClient.java @@ -134,6 +134,10 @@ public class MacOsHabboClient extends HabboClient { private static byte[] hexStringToByteArray(String s) { int len = s.length(); + if (len % 2 == 1) { + s = "0" + s; + len += 1; + } byte[] data = new byte[len / 2]; for (int i = 0; i < len; i += 2) { data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)