From c7f479b641954cf0050f9103fc289cd59725bbd4 Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Mon, 21 Jun 2021 11:49:16 -0300 Subject: [PATCH] Fix ModtoolRoomInfoParser field name --- .../messages/parser/modtool/ModtoolRoomInfoParser.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nitro/communication/messages/parser/modtool/ModtoolRoomInfoParser.ts b/src/nitro/communication/messages/parser/modtool/ModtoolRoomInfoParser.ts index b710e0d3..bc45146b 100644 --- a/src/nitro/communication/messages/parser/modtool/ModtoolRoomInfoParser.ts +++ b/src/nitro/communication/messages/parser/modtool/ModtoolRoomInfoParser.ts @@ -5,7 +5,7 @@ export class ModtoolRoomInfoParser implements IMessageParser { private _id: number; private _playerAmount: number; - private _owner: boolean; + private _ownerInRoom: boolean; private _ownerId: number; private _ownerName: string; private _bool: boolean; @@ -26,7 +26,7 @@ export class ModtoolRoomInfoParser implements IMessageParser this._id = wrapper.readInt(); this._playerAmount = wrapper.readInt(); - this._owner = wrapper.readBoolean(); + this._ownerInRoom = wrapper.readBoolean(); this._ownerId = wrapper.readInt(); this._ownerName = wrapper.readString(); this._bool = wrapper.readBoolean(); @@ -47,9 +47,9 @@ export class ModtoolRoomInfoParser implements IMessageParser return this._playerAmount; } - public get owner(): boolean + public get ownerInRoom(): boolean { - return this._owner; + return this._ownerInRoom; } public get ownerId(): number