fix issue#9

getPlayerUid ==> getPlayer().getUid()
This commit is contained in:
jixiaob 2022-07-22 13:33:43 +08:00
parent b774423eaa
commit 74450dd6ad

View File

@ -14,7 +14,7 @@ public class PlayerBornHook extends HandlerSetPlayerBornDataReq {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
super.handle(session, header, payload);
int playerUid = session.getAccount().getReservedPlayerUid();
int playerUid = session.getPlayer().getUid();
// 第一次加入
if(playerUid != 0) {