From 5f89e4e90a454f10b7758689f5a93bd845196d73 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sun, 6 Jun 2021 21:35:11 +0200 Subject: [PATCH] refactor: regenerated HashCode for lobbyConnection --- .../marvelous/server/lobbymanager/LobbyConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java index 975699c..e3c8c51 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyConnection.java @@ -514,7 +514,10 @@ public class LobbyConnection implements Runnable { @Override public int hashCode() { - return Objects.hash(lobby, gameID, player1, player2, characterSelectionActive, inGame, spectators, incomingMessages); + int result = Objects.hash(gameID, player1, player2, characterSelectionActive, inGame, active, spectators, incomingMessages, sendMessageCallback, sendErrorCallback, selectionPossibilities); + result = 31 * result + Arrays.hashCode(playerOneSelection); + result = 31 * result + Arrays.hashCode(playerTwoSelection); + return result; } @Override