From 38e6bdf92db8929704a216bb1cd61be54bc6d307 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 20:53:25 -0600 Subject: [PATCH] login crash bug --- src/engine/objects/PlayerCharacter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 830be3ab..52192c8b 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -209,7 +209,7 @@ public class PlayerCharacter extends AbstractCharacter { this.guildStatus = new AtomicInteger(0); this.buildingUUID = -1; - this.level = 10; + this.setLevel((short)10); } /** @@ -1290,7 +1290,8 @@ public class PlayerCharacter extends AbstractCharacter { //get level based on experience player.level = (short) Experience.getLevel(player.exp); - + if(player.level < 10) + player.setLevel((short)10); player.setHealth(999999f); player.mana.set(999999f); player.stamina.set(999999f);