login crash bug

This commit is contained in:
2024-03-09 21:42:56 -06:00
parent 28fa81962d
commit c6c4a128a2
3 changed files with 9 additions and 3 deletions
+3 -2
View File
@@ -1260,8 +1260,6 @@ 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);
@@ -4801,6 +4799,9 @@ public class PlayerCharacter extends AbstractCharacter {
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
//}
if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){
this.setLevel((short) 10);
}
} catch (Exception e) {
Logger.error(e);