mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 13:24:36 +01:00
Fix error when creating a new player
This commit is contained in:
@@ -203,8 +203,11 @@ public class Player {
|
||||
|
||||
this.level = newLevel;
|
||||
this.exp = GameData.getPlayerExpRequired(this.level);
|
||||
this.sendPacket(new PacketPlayerSyncScNotify(this));
|
||||
this.save();
|
||||
|
||||
if (this.isOnline()) {
|
||||
this.getSession().send(new PacketPlayerSyncScNotify(this));
|
||||
this.save();
|
||||
}
|
||||
}
|
||||
|
||||
private void onLevelChange(int oldLevel, int newLevel) {
|
||||
|
||||
Reference in New Issue
Block a user