Commit cc0fba76 authored by nanahira's avatar nanahira

simplify

parent 0169d79a
Pipeline #43387 passed with stages
in 3 minutes and 22 seconds
......@@ -92,13 +92,7 @@ export class HidePlayerNameProvider {
if (player === sightPlayer) {
continue;
}
await sightPlayer.send(
new YGOProStocHsPlayerEnter().fromPartial({
name: player.name,
pos: player.pos,
}),
true,
);
await sightPlayer.send(player.prepareEnterPacket(), true);
}
}
return next();
......
......@@ -355,12 +355,7 @@ export class Reconnect {
// 发送其他玩家信息
for (const player of room.players) {
if (player) {
await client.send(
new YGOProStocHsPlayerEnter().fromPartial({
name: player.name,
pos: player.pos,
}),
);
await client.send(player.prepareChangePacket());
}
}
}
......
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