1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 14:02:55 +08:00

Don't copy spotlight category

This commit is contained in:
Dean Herbert 2020-12-26 20:13:28 +09:00
parent e7339d6959
commit b9d725ab49

View File

@ -130,7 +130,9 @@ namespace osu.Game.Online.Rooms
{ {
RoomID.Value = other.RoomID.Value; RoomID.Value = other.RoomID.Value;
Name.Value = other.Name.Value; Name.Value = other.Name.Value;
Category.Value = other.Category.Value;
if (other.Category.Value != RoomCategory.Spotlight)
Category.Value = other.Category.Value;
if (other.Host.Value != null && Host.Value?.Id != other.Host.Value.Id) if (other.Host.Value != null && Host.Value?.Id != other.Host.Value.Id)
Host.Value = other.Host.Value; Host.Value = other.Host.Value;