From 7a6092ed7efb661b9574285bebba264b457396d4 Mon Sep 17 00:00:00 2001 From: duckietm Date: Mon, 4 May 2026 15:28:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Small=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/messages/parser/room/unit/RoomUnitInfoParser.ts | 2 +- .../src/messages/parser/user/data/UserProfileParser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/communication/src/messages/parser/room/unit/RoomUnitInfoParser.ts b/packages/communication/src/messages/parser/room/unit/RoomUnitInfoParser.ts index 8abdcf5..bc11063 100644 --- a/packages/communication/src/messages/parser/room/unit/RoomUnitInfoParser.ts +++ b/packages/communication/src/messages/parser/room/unit/RoomUnitInfoParser.ts @@ -40,7 +40,7 @@ export class RoomUnitInfoParser implements IMessageParser this._standId = wrapper.readInt(); this._overlayId = wrapper.readInt(); - if(wrapper.bytesAvailable >= 4) this._cardBackgroundId = wrapper.readInt(); + if(wrapper.bytesAvailable) this._cardBackgroundId = wrapper.readInt(); return true; } diff --git a/packages/communication/src/messages/parser/user/data/UserProfileParser.ts b/packages/communication/src/messages/parser/user/data/UserProfileParser.ts index da2d53d..4fd679b 100644 --- a/packages/communication/src/messages/parser/user/data/UserProfileParser.ts +++ b/packages/communication/src/messages/parser/user/data/UserProfileParser.ts @@ -74,7 +74,7 @@ export class UserProfileParser implements IMessageParser this._standId = wrapper.readInt(); this._overlayId = wrapper.readInt(); - if(wrapper.bytesAvailable >= 4) this._cardBackgroundId = wrapper.readInt(); + if(wrapper.bytesAvailable) this._cardBackgroundId = wrapper.readInt(); } return true;