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 roomCount = reader.ReadUShort();
var roomList = new RagonRoomInformation[roomCount]; var roomList = new RagonRoomInformation[roomCount];
for (int i = 0; i < roomCount; i++) for (int i = 0; i < roomCount; i++)
{ {
var id = reader.ReadString(); var id = reader.ReadString();
+1
View File
@@ -98,6 +98,7 @@ namespace Ragon.Client
} }
} }
_changesCache.Clear();
_localChanges.Clear(); _localChanges.Clear();
} }
} }
@@ -16,6 +16,7 @@ public class RagonLobbyDispatcher
{ {
writer.Clear(); writer.Clear();
writer.WriteOperation(RagonOperation.ROOM_LIST_UPDATED); writer.WriteOperation(RagonOperation.ROOM_LIST_UPDATED);
var rooms = _lobby.Rooms; var rooms = _lobby.Rooms;
if (projectId > 0) if (projectId > 0)
+1 -2
View File
@@ -148,8 +148,7 @@ public class RagonRoom : IRagonRoom, IRagonAction
RagonTarget targetMode RagonTarget targetMode
) )
{ {
if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner && if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner && _bufferedEvents.Count < _limitBufferedEvents)
_bufferedEvents.Count < _limitBufferedEvents)
{ {
_bufferedEvents.Add(evnt); _bufferedEvents.Add(evnt);
} }