From 69dd7bcc37ee523e10ce457c793d476e773f632f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 20:46:15 -0600 Subject: [PATCH] login crash bug --- src/engine/objects/PlayerCharacter.java | 1 + src/engine/server/login/LoginServerMsgHandler.java | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index e043cc84..830be3ab 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -209,6 +209,7 @@ public class PlayerCharacter extends AbstractCharacter { this.guildStatus = new AtomicInteger(0); this.buildingUUID = -1; + this.level = 10; } /** diff --git a/src/engine/server/login/LoginServerMsgHandler.java b/src/engine/server/login/LoginServerMsgHandler.java index c92007e0..6306b13d 100644 --- a/src/engine/server/login/LoginServerMsgHandler.java +++ b/src/engine/server/login/LoginServerMsgHandler.java @@ -351,10 +351,6 @@ public class LoginServerMsgHandler implements NetMsgHandler { this.sendCharacterSelectScreen(session, true); return; } - pc.level = 10; - MobLoot conc = new MobLoot(pc, ItemBase.getItemBase(980066),false); - //player.getCharItemManager().addItemToInventory(conc); - pc.getCharItemManager().addItemToInventory(conc.promoteToItem(pc),1); PlayerCharacter.initializePlayer(pc); session.getAccount().characterMap.putIfAbsent(pc.getObjectUUID(), pc); // Send back to Character Select Screen