forked from MagicBane/Server
login crash bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user