HOTFIX: hotfixed show-stopping bug

This commit is contained in:
Yannik Bretschneider 2021-06-07 18:21:30 +02:00
parent 2da32cb397
commit 7d486df64f

View File

@ -49,7 +49,7 @@ public class LobbyConnection implements Runnable {
} }
public void addParticipant(Participant participant) { public void addParticipant(Participant participant) {
if (this.state == LobbyConnectionState.Started || this.player1.state == ParticipantState.Playing) { if (this.state == LobbyConnectionState.Started) {
Logger.trace("Set client state to playing"); Logger.trace("Set client state to playing");
participant.getClient().state = ClientState.Playing; participant.getClient().state = ClientState.Playing;
participant.state = ParticipantState.Playing; participant.state = ParticipantState.Playing;