diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java index fa39d8c..4a50a01 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java @@ -17,11 +17,9 @@ import java.util.function.BiConsumer; public class LobbyManager { private final HashMap lobbies; private final HashMap resourceDescriptorToLobby; - private final BiConsumer sendMessageCallback; private String localResourceDescriptor; - public LobbyManager(BiConsumer sendMessageCallback) { - this.sendMessageCallback = sendMessageCallback; + public LobbyManager() { this.lobbies = new HashMap<>(); this.resourceDescriptorToLobby = new HashMap<>(); } @@ -92,7 +90,7 @@ public class LobbyManager { } private LobbyConnection initializeNewLobby(String gameID) { - return new LobbyConnection(gameID, sendMessageCallback); + return new LobbyConnection(gameID); } /**