From 8705e9392917c91c3ea1957707576ad154dce961 Mon Sep 17 00:00:00 2001 From: edmand45 Date: Wed, 2 Aug 2023 22:13:51 +0300 Subject: [PATCH] :bug: event size --- Ragon.Client/Sources/Handler/SnapshotHandler.cs | 1 - Ragon.Server/Sources/Entity/RagonEvent.cs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ragon.Client/Sources/Handler/SnapshotHandler.cs b/Ragon.Client/Sources/Handler/SnapshotHandler.cs index ebe98d9..aff6245 100644 --- a/Ragon.Client/Sources/Handler/SnapshotHandler.cs +++ b/Ragon.Client/Sources/Handler/SnapshotHandler.cs @@ -118,7 +118,6 @@ internal class SnapshotHandler : Handler if (_client.Status == RagonStatus.LOBBY) { _client.SetStatus(RagonStatus.ROOM); - _listenerList.OnJoined(); } diff --git a/Ragon.Server/Sources/Entity/RagonEvent.cs b/Ragon.Server/Sources/Entity/RagonEvent.cs index 3fac411..22e20ac 100644 --- a/Ragon.Server/Sources/Entity/RagonEvent.cs +++ b/Ragon.Server/Sources/Entity/RagonEvent.cs @@ -39,7 +39,8 @@ public class RagonEvent public void Read(RagonBuffer buffer) { - buffer.ReadArray(_data, buffer.Capacity); + _size = buffer.Capacity; + buffer.ReadArray(_data, _size); } public void Write(RagonBuffer buffer)