diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java index 1440d34..6d45cec 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java @@ -292,9 +292,9 @@ public class Lobby { connection.broadcastEvents( new EventBuilder(EventType.WinEvent) .withPlayerWon(winner.type.equals(ParticipantType.PlayerOne) ? 1 : 2) - .buildGameStateEvent(), + .buildGameEvent(), new EventBuilder(EventType.DisconnectEvent) - .buildGameStateEvent()); + .buildGameEvent()); connection.terminate(); }