login crash bug
This commit is contained in:
1 parent
69dd7bcc37
commit
38e6bdf92d
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user