fix issue#9

getPlayerUid ==> getReservedPlayerUid
This commit is contained in:
jixiaob 2022-07-22 11:12:53 +08:00
parent c7f009cf2f
commit b774423eaa
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
<artifactId>Grasscutter-api</artifactId> <artifactId>Grasscutter-api</artifactId>
<version>1.0</version> <version>1.0</version>
<scope>system</scope> <scope>system</scope>
<systemPath>${basedir}/../Grasscutter/grasscutter-1.1.1-dev.jar</systemPath> <systemPath>${basedir}/../Grasscutter/grasscutter-1.2.3-dev-beb6906.jar</systemPath>
</dependency> </dependency>
<dependency> <dependency>

View File

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