mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
fix
This commit is contained in:
1 parent
5ee0fdb61f
commit
b09c40b7e1
1 file changed
+6
-6
@@ -210,12 +210,6 @@ namespace Impostor.Server.Net.State
|
||||
return GameJoinResult.FromError(GameJoinError.InvalidLimbo);
|
||||
}
|
||||
|
||||
if (GameState == GameStates.Ended)
|
||||
{
|
||||
await HandleJoinGameNext(player, isNew);
|
||||
return GameJoinResult.CreateSuccess(player);
|
||||
}
|
||||
|
||||
var @event = new GamePlayerJoiningEvent(this, player);
|
||||
await _eventManager.CallAsync(@event);
|
||||
|
||||
@@ -224,6 +218,12 @@ namespace Impostor.Server.Net.State
|
||||
return @event.JoinResult.Value;
|
||||
}
|
||||
|
||||
if (GameState == GameStates.Ended)
|
||||
{
|
||||
await HandleJoinGameNext(player, isNew);
|
||||
return GameJoinResult.CreateSuccess(player);
|
||||
}
|
||||
|
||||
await HandleJoinGameNew(player, isNew);
|
||||
return GameJoinResult.CreateSuccess(player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user