From bbd3dfe47ed00dd31ce31ddacb606c1e0f29654c Mon Sep 17 00:00:00 2001 From: TheEntropyShard Date: Wed, 8 Mar 2023 13:52:12 +0300 Subject: [PATCH] Corrected method name --- src/me/theentropyshard/jdarkroom/Decoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/theentropyshard/jdarkroom/Decoder.java b/src/me/theentropyshard/jdarkroom/Decoder.java index 7349c65..b16598e 100644 --- a/src/me/theentropyshard/jdarkroom/Decoder.java +++ b/src/me/theentropyshard/jdarkroom/Decoder.java @@ -68,12 +68,12 @@ public enum Decoder { public static String getGameInfo(byte[] bytes) { String resultLabel = I18N.getString("resultLabel"); - String[] internetCodes = Decoder.readInternetCode(bytes).split("_"); + String[] internetCodes = Decoder.readCode(bytes).split("_"); String totalPlaytime = Decoder.readTotalPlaytime(bytes); return String.format(resultLabel, internetCodes[0], internetCodes[1], totalPlaytime); } - public static String readInternetCode(byte[] bytes) { + public static String readCode(byte[] bytes) { int intCode = 0; intCode |= (bytes[8] & (0x1E000000 >> 25)) << 25; intCode |= (bytes[9] & (0x01000000 >> 19)) << 19;