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 { ...@@ -92,13 +92,7 @@ export class HidePlayerNameProvider {
if (player === sightPlayer) { if (player === sightPlayer) {
continue; continue;
} }
await sightPlayer.send( await sightPlayer.send(player.prepareEnterPacket(), true);
new YGOProStocHsPlayerEnter().fromPartial({
name: player.name,
pos: player.pos,
}),
true,
);
} }
} }
return next(); return next();
......
...@@ -355,12 +355,7 @@ export class Reconnect { ...@@ -355,12 +355,7 @@ export class Reconnect {
// 发送其他玩家信息 // 发送其他玩家信息
for (const player of room.players) { for (const player of room.players) {
if (player) { if (player) {
await client.send( await client.send(player.prepareChangePacket());
new YGOProStocHsPlayerEnter().fromPartial({
name: player.name,
pos: player.pos,
}),
);
} }
} }
} }
......
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