Browse Source

login crash bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
a924e4c876
  1. 2
      src/engine/db/handlers/dbPlayerCharacterHandler.java
  2. 1
      src/engine/objects/PlayerCharacter.java

2
src/engine/db/handlers/dbPlayerCharacterHandler.java

@ -52,7 +52,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase { @@ -52,7 +52,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
preparedStatement.setInt(8, toAdd.getConMod());
preparedStatement.setInt(9, toAdd.getIntMod());
preparedStatement.setInt(10, toAdd.getSpiMod());
preparedStatement.setInt(11, toAdd.getExp());
preparedStatement.setInt(11, 109351); // auto level 10
preparedStatement.setInt(12, toAdd.getSkinColor());
preparedStatement.setInt(13, toAdd.getHairColor());
preparedStatement.setByte(14, toAdd.getHairStyle());

1
src/engine/objects/PlayerCharacter.java

@ -209,7 +209,6 @@ public class PlayerCharacter extends AbstractCharacter { @@ -209,7 +209,6 @@ public class PlayerCharacter extends AbstractCharacter {
this.guildStatus = new AtomicInteger(0);
this.buildingUUID = -1;
this.setLevel((short)10);
}
/**

Loading…
Cancel
Save