diff --git a/src/server/packets/GetCurLineupDataCsReq.ts b/src/server/packets/GetCurLineupDataCsReq.ts index b6c5ec0..b8971f4 100644 --- a/src/server/packets/GetCurLineupDataCsReq.ts +++ b/src/server/packets/GetCurLineupDataCsReq.ts @@ -4,7 +4,7 @@ import Packet from "../kcp/Packet"; import Session from "../kcp/Session"; export default async function handle(session: Session, packet: Packet) { - let lineup = await session.player.getLineup(); + const lineup = await session.player.getLineup(); session.send("GetCurLineupDataScRsp", { retcode: 0, diff --git a/src/server/packets/JoinLineupCsReq.ts b/src/server/packets/JoinLineupCsReq.ts index ea3740f..5391ffa 100644 --- a/src/server/packets/JoinLineupCsReq.ts +++ b/src/server/packets/JoinLineupCsReq.ts @@ -8,7 +8,7 @@ export default async function handle(session: Session, packet: Packet) { const body = packet.body as JoinLineupCsReq; session.send("JoinLineupScRsp", { retcode: 0 }); - let lineup = await session.player.getLineup(); + const lineup = await session.player.getLineup(); const slot = body.slot || 0; const avatarList = []; for (const avatarId in lineup) { diff --git a/src/server/packets/SetLineupNameCsReq.ts b/src/server/packets/SetLineupNameCsReq.ts index a25bc71..2a78ed8 100644 --- a/src/server/packets/SetLineupNameCsReq.ts +++ b/src/server/packets/SetLineupNameCsReq.ts @@ -5,7 +5,7 @@ import Session from "../kcp/Session"; export default async function handle(session: Session, packet: Packet) { const body = packet.body as SetLineupNameCsReq; - let curLineup = await session.player.getLineup(); + const curLineup = await session.player.getLineup(); curLineup.name = body.name; session.player.setLineup(curLineup); session.player.save();