bugfix in JoinRoom

This commit is contained in:
Robert Paciorek 2024-03-16 20:11:33 +00:00
parent 83e56f745d
commit 445d032a74

View File

@ -64,8 +64,8 @@ public class Client {
lock(ClientLock) { lock(ClientLock) {
LeaveRoom(); LeaveRoom();
PlayerData.IsValid = false; PlayerData.IsValid = false;
Room.AddClient(this);
Room = room; Room = room;
Room.AddClient(this);
} }
Send(Room.SubscribeRoom()); Send(Room.SubscribeRoom());
UpdatePlayerUserVariables(); UpdatePlayerUserVariables();