From 4706c1525ceb40d8ea21aaeed4857ca8a32fd623 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 23 Nov 2022 21:02:49 +0100 Subject: [PATCH] Fix NodeDownload --- src/de/steamwar/sql/NodeDownload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/sql/NodeDownload.java b/src/de/steamwar/sql/NodeDownload.java index b1bd29c..585b3db 100644 --- a/src/de/steamwar/sql/NodeDownload.java +++ b/src/de/steamwar/sql/NodeDownload.java @@ -63,7 +63,7 @@ public class NodeDownload { public static String base16encode(byte[] byteArray) { StringBuilder hexBuffer = new StringBuilder(byteArray.length * 2); for (byte b : byteArray) - hexBuffer.append(HEX[b >>> 4]).append(HEX[b & 0xF]); + hexBuffer.append(HEX[(b >>> 4) & 0xF]).append(HEX[b & 0xF]); return hexBuffer.toString(); } }