diff --git a/pom.xml b/pom.xml index fcb2a16..fbb0020 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ Grasscutter-api 1.0 system - ${basedir}/../Grasscutter/grasscutter-1.1.1-dev.jar + ${basedir}/../Grasscutter/grasscutter-1.2.3-dev-beb6906.jar diff --git a/src/main/java/io/github/gmw/packetHandler/PlayerBornHook.java b/src/main/java/io/github/gmw/packetHandler/PlayerBornHook.java index cab6961..e4dc1a9 100644 --- a/src/main/java/io/github/gmw/packetHandler/PlayerBornHook.java +++ b/src/main/java/io/github/gmw/packetHandler/PlayerBornHook.java @@ -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().getPlayerUid(); + int playerUid = session.getPlayer().getUid(); // 第一次加入 if(playerUid != 0) {