From a55d503faa3fb19d6a498ded4b9c9205c8eefffe Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 28 Mar 2024 01:14:29 -0400 Subject: [PATCH] [F] Fix allnet compression --- .../java/icu/samnyan/aqua/sega/util/AllNetBillingDecoder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/util/AllNetBillingDecoder.kt b/src/main/java/icu/samnyan/aqua/sega/util/AllNetBillingDecoder.kt index 52566f83..765dcf9f 100644 --- a/src/main/java/icu/samnyan/aqua/sega/util/AllNetBillingDecoder.kt +++ b/src/main/java/icu/samnyan/aqua/sega/util/AllNetBillingDecoder.kt @@ -9,7 +9,7 @@ object AllNetBillingDecoder { */ fun decode(src: ByteArray, base64: Boolean, nowrap: Boolean): Map { // Decode the input byte array from Base64 MIME encoding - val bytes = if (base64) src else Base64.getMimeDecoder().decode(src) + val bytes = if (!base64) src else Base64.getMimeDecoder().decode(src) // Decompress the decoded byte array val output = ZLib.decompress(bytes, nowrap).toString(UTF_8).trim()