From 16e8df3dafdac81e96401527255a110d9ede78ea Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 20:35:00 -0600 Subject: [PATCH] login crash bug --- src/engine/InterestManagement/InterestManager.java | 12 ++++++------ src/engine/server/login/LoginServerMsgHandler.java | 9 +++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index 6de6a458..a36c4a3b 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -531,13 +531,13 @@ public enum InterestManager implements Runnable { updateStaticList(player, origin); updateMobileList(player, origin); - if(player.level < 10) { - player.setLevel((short) 10); - MobLoot conc = new MobLoot(player,ItemBase.getItemBase(980066),false); + //if(player.level < 10) { + //player.setLevel((short) 10); + //MobLoot conc = new MobLoot(player,ItemBase.getItemBase(980066),false); //player.getCharItemManager().addItemToInventory(conc); - player.getCharItemManager().addItemToInventory(conc.promoteToItem(player),1); - player.getCharItemManager().updateInventory(); - } + //player.getCharItemManager().addItemToInventory(conc.promoteToItem(player),1); + //player.getCharItemManager().updateInventory(); + // } player.isBoxed = false; } diff --git a/src/engine/server/login/LoginServerMsgHandler.java b/src/engine/server/login/LoginServerMsgHandler.java index dff76ce7..29dde176 100644 --- a/src/engine/server/login/LoginServerMsgHandler.java +++ b/src/engine/server/login/LoginServerMsgHandler.java @@ -25,9 +25,7 @@ import engine.net.client.Protocol; import engine.net.client.msg.ClientNetMsg; import engine.net.client.msg.ServerInfoMsg; import engine.net.client.msg.login.*; -import engine.objects.Account; -import engine.objects.GuildStatusController; -import engine.objects.PlayerCharacter; +import engine.objects.*; import engine.server.MBServerStatics; import engine.session.CSSession; import engine.session.Session; @@ -353,7 +351,10 @@ public class LoginServerMsgHandler implements NetMsgHandler { this.sendCharacterSelectScreen(session, true); return; } - + pc.setLevel((short)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