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)