[ADD] added host user check to join
This commit is contained in:
@@ -207,6 +207,10 @@ namespace Server.Models
|
|||||||
{
|
{
|
||||||
if (l.ID == id)
|
if (l.ID == id)
|
||||||
{
|
{
|
||||||
|
if (l.Users.Count == 0)
|
||||||
|
{
|
||||||
|
user.Host = true;
|
||||||
|
}
|
||||||
AddToLobby(l, user);
|
AddToLobby(l, user);
|
||||||
Debug.WriteLine($"{user.Username} joined lobby with id {id}");
|
Debug.WriteLine($"{user.Username} joined lobby with id {id}");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user