From 257d45933317675af1d7920e32df4c5a9e5155f9 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Sun, 1 Jun 2025 21:25:23 +0900 Subject: [PATCH] fixed --- src/client/Cosmetic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/Cosmetic.ts b/src/client/Cosmetic.ts index 0d2d34740..49ae94006 100644 --- a/src/client/Cosmetic.ts +++ b/src/client/Cosmetic.ts @@ -36,8 +36,8 @@ export class PatternDecoder { throw new Error("The pattern versions are different."); } - const packed = (bytes[2] << 8) | bytes[1]; - const scale = packed & 0x7; + const packed = bytes[1] | (bytes[2] << 8); + const scale = packed & 0x07; const width = (packed >> 3) & 0x7f; const height = (packed >> 10) & 0x3f;