Browse Source

login crash bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
38e6bdf92d
  1. 5
      src/engine/objects/PlayerCharacter.java

5
src/engine/objects/PlayerCharacter.java

@ -209,7 +209,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -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 { @@ -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);

Loading…
Cancel
Save