diff --git a/server/src/handlers/lobby.ts b/server/src/handlers/lobby.ts index bc076c6..24360c9 100644 --- a/server/src/handlers/lobby.ts +++ b/server/src/handlers/lobby.ts @@ -169,7 +169,7 @@ const lobbyHandlers: Handlers = { socket, Packet.RecievePublicLobbiesPacket, { lobbies: Object.values(state.lobbies) - .filter((lobby) => lobby.settings.isPublic) + .filter((lobby) => lobby.settings.isPublic && !Object.keys(state.swaps).includes(lobby.code)) .sort((a, b) => b.accounts.length - a.accounts.length) } ) }