Refactor how handlers encode messages

This commit is contained in:
Melledy
2025-10-30 19:40:09 -07:00
parent 00b77e80e1
commit da1856df50
73 changed files with 138 additions and 134 deletions

View File

@@ -13,7 +13,7 @@ public class HandlerGachaNewbieInfoReq extends NetHandler {
public byte[] handle(GameSession session, byte[] message) throws Exception {
var rsp = GachaInformationResp.newInstance();
return this.encodeMsg(NetMsgId.gacha_newbie_info_succeed_ack, rsp);
return session.encodeMsg(NetMsgId.gacha_newbie_info_succeed_ack, rsp);
}
}