Commit ffa38cc1 authored by Chunchi Che's avatar Chunchi Che Committed by WANG HE

fix small

parent ffead879
......@@ -5,10 +5,8 @@ import { strEncodeUTF16 } from "../util";
export default class CtosPlayerInfoPacket extends ygoProPacket {
constructor(pb: ygopro.YgoCtosMsg) {
const encoder = new TextEncoder();
const player = pb.ctos_player_info.name;
const exData = encoder.encode(player);
const exData = strEncodeUTF16(player);
super(exData.length + 1, CTOS_PLAYER_INFO, exData);
}
......
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