fix: user data changes not cleared

This commit is contained in:
2025-12-28 20:12:21 +03:00
parent 7c3a2dab89
commit 5937e026eb
4 changed files with 5 additions and 3 deletions
@@ -17,6 +17,7 @@ internal class RoomListHandler: IHandler
{
var roomCount = reader.ReadUShort();
var roomList = new RagonRoomInformation[roomCount];
for (int i = 0; i < roomCount; i++)
{
var id = reader.ReadString();
+1
View File
@@ -98,6 +98,7 @@ namespace Ragon.Client
}
}
_changesCache.Clear();
_localChanges.Clear();
}
}
@@ -16,8 +16,9 @@ public class RagonLobbyDispatcher
{
writer.Clear();
writer.WriteOperation(RagonOperation.ROOM_LIST_UPDATED);
var rooms = _lobby.Rooms;
if (projectId > 0)
{
rooms = rooms.Where(r => r.ProjectId == projectId).ToList();
+1 -2
View File
@@ -148,8 +148,7 @@ public class RagonRoom : IRagonRoom, IRagonAction
RagonTarget targetMode
)
{
if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner &&
_bufferedEvents.Count < _limitBufferedEvents)
if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner && _bufferedEvents.Count < _limitBufferedEvents)
{
_bufferedEvents.Add(evnt);
}