Commit dd14de64 authored by nanahira's avatar nanahira

fix kick reconnect

parent 3e46585b
Pipeline #43612 passed with stages
in 2 minutes and 33 seconds
...@@ -395,9 +395,7 @@ export class Reconnect { ...@@ -395,9 +395,7 @@ export class Reconnect {
return false; return false;
} }
const oldClient = room.playingPlayers.find( const oldClient = room.players[client.pos];
(p) => p.name === client.name && p !== client,
);
if (!oldClient?.startDeck) { if (!oldClient?.startDeck) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment