Remove a jvydenism (#644)

This makes sense
This commit is contained in:
Zaprit 2023-01-23 01:45:46 +00:00 committed by GitHub
commit 8ecc5b1aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,8 @@ public class Room
}
}
[RedisIdField]
public string RedisId { get; set; }
@ -43,18 +45,16 @@ public class Room
public bool IsLookingForPlayers => this.State == RoomState.PlayingLevel || this.State == RoomState.DivingInWaiting;
[JsonIgnore]
public int HostId {
get {
try
public int HostId
{
get
{
if (this.PlayerIds.Count > 0)
return this.PlayerIds[0];
}
catch
{
return -1;
}
}
}
#nullable enable
public override bool Equals(object? obj)