From f9bd2b21f636d896b5a5700d5caf8b3bc0873f3b Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 25 May 2022 19:00:36 -0400 Subject: [PATCH 1/3] Fix room settings composer --- .../room/data/SaveRoomSettingsComposer.ts | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts b/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts index 72b45056..26470326 100644 --- a/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts +++ b/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts @@ -1,10 +1,15 @@ import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer'; -export class SaveRoomSettingsComposer implements IMessageComposer> +export class SaveRoomSettingsComposer +implements + IMessageComposer< + ConstructorParameters + > { private _data: ConstructorParameters; - constructor(roomId: number, + constructor( + roomId: number, roomName: string, roomDescription: string, lockState: number, @@ -30,16 +35,19 @@ export class SaveRoomSettingsComposer implements IMessageComposer Date: Wed, 25 May 2022 19:02:04 -0400 Subject: [PATCH 2/3] Bump version --- package.json | 2 +- src/core/NitroVersion.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 67bf1ee1..c9894cb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nitrots/nitro-renderer", "description": "Javascript library for rendering Nitro in the browser using PixiJS", - "version": "1.2.5", + "version": "1.2.6", "publishConfig": { "access": "public" }, diff --git a/src/core/NitroVersion.ts b/src/core/NitroVersion.ts index 33abe52d..57ed6e47 100644 --- a/src/core/NitroVersion.ts +++ b/src/core/NitroVersion.ts @@ -1,5 +1,5 @@ export class NitroVersion { - public static RENDERER_VERSION: string = '1.2.5'; + public static RENDERER_VERSION: string = '1.2.6'; public static UI_VERSION: string = ''; } From dfce157d8045df575f8b652db564bdfb3b809c1d Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 25 May 2022 19:03:04 -0400 Subject: [PATCH 3/3] Fix SaveRoomSettingsComposer --- .../messages/outgoing/room/data/SaveRoomSettingsComposer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts b/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts index 26470326..ddd1ba3c 100644 --- a/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts +++ b/src/nitro/communication/messages/outgoing/room/data/SaveRoomSettingsComposer.ts @@ -35,6 +35,9 @@ implements chatFloodProtection: number ) { + //@ts-ignore + this._data = []; + this._data.push( roomId, roomName,