From a924e4c8765d2b0965a1950696c20b66dd9a9e3d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 21:00:12 -0600 Subject: [PATCH] login crash bug --- src/engine/db/handlers/dbPlayerCharacterHandler.java | 2 +- src/engine/objects/PlayerCharacter.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbPlayerCharacterHandler.java b/src/engine/db/handlers/dbPlayerCharacterHandler.java index 59b48a78..151c79b3 100644 --- a/src/engine/db/handlers/dbPlayerCharacterHandler.java +++ b/src/engine/db/handlers/dbPlayerCharacterHandler.java @@ -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()); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 52192c8b..bd314929 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -209,7 +209,6 @@ public class PlayerCharacter extends AbstractCharacter { this.guildStatus = new AtomicInteger(0); this.buildingUUID = -1; - this.setLevel((short)10); } /**