Commit 08ad2b1e authored by Chunchi Che's avatar Chunchi Che

fix small

parent 51cd0d24
Pipeline #17395 passed with stages
in 2 minutes and 25 seconds
......@@ -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