From 3a16e0d5c26d711658ab2c79a7b666c367468cd2 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX <1173913+AbandonedCart@users.noreply.github.com> Date: Thu, 28 Nov 2024 18:09:21 -0500 Subject: [PATCH] The range is the end, not desired length --- .../hiddenramblings/tagmo/amiibo/tagdata/AppDataMLPaperJam.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/hiddenramblings/tagmo/amiibo/tagdata/AppDataMLPaperJam.kt b/app/src/main/java/com/hiddenramblings/tagmo/amiibo/tagdata/AppDataMLPaperJam.kt index f7c6560f6..9746dcd4a 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/amiibo/tagdata/AppDataMLPaperJam.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/amiibo/tagdata/AppDataMLPaperJam.kt @@ -15,7 +15,7 @@ class AppDataMLPaperJam(appData: ByteArray?) : AppData(appData!!) { private val sparkleCardBytes = sparkleCardHex.toHexByteArray() fun checkSparkleCards(): Boolean { - val sparkleCardData = appData.array().copyOfRange(SPARKLE_CARD_OFFSET, sparkleCardBytes.size) + val sparkleCardData = appData.array().copyOfRange(SPARKLE_CARD_OFFSET, SPARKLE_CARD_OFFSET + sparkleCardBytes.size) return sparkleCardData.contentEquals(sparkleCardBytes) } fun unlockSparkleCards() {