Merge pull request #11 from Zhaokugua/main

Fixes #9
This commit is contained in:
ButterCookies 2022-07-26 16:39:58 +08:00 committed by GitHub
commit f38f456b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
<artifactId>Grasscutter-api</artifactId>
<version>1.0</version>
<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>

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().getPlayerUid();
int playerUid = session.getPlayer().getUid();
// 第一次加入
if(playerUid != 0) {