fix: updated timeout-method for spectator-error
This commit is contained in:
parent
6a8de34c67
commit
c1cd3fba66
@ -147,10 +147,10 @@ public class Lobby {
|
||||
new EventBuilder(EventType.TimeoutEvent).buildGameStateEvent());
|
||||
connection.removeParticipant(source);
|
||||
|
||||
if(connection.hasPlayer1()){
|
||||
if(connection.hasPlayer1() && !connection.hasPlayer2()){
|
||||
generateWin(connection.getPlayer1());
|
||||
}
|
||||
else if(connection.hasPlayer2()) {
|
||||
else if(!connection.hasPlayer1() && connection.hasPlayer2()) {
|
||||
generateWin(connection.getPlayer2());
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user