From 6aba5be67a4ead2098223471588ac47f2eaaed62 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 10 Mar 2024 13:05:50 -0500 Subject: [PATCH] login crash bug --- src/engine/objects/PlayerCharacter.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 0ba20715..3f6ffccc 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4801,10 +4801,17 @@ public class PlayerCharacter extends AbstractCharacter { //} if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){ this.setLevel((short) 10); - MobLoot conc = new MobLoot(this,ItemBase.getItemBase(980066),false); - this.getCharItemManager().addItemToInventory(conc); - this.getCharItemManager().addItemToInventory(conc.promoteToItem(this),1); - this.getCharItemManager().updateInventory(); + boolean hasConc = false; + for(Item i : this.getCharItemManager().getInventory()){ + if(i.getItemBaseID() == 980066){ + hasConc = true; + } + } + if(hasConc == false) { + MobLoot conc = new MobLoot(this, ItemBase.getItemBase(980066), false); + this.getCharItemManager().addItemToInventory(conc.promoteToItem(this), 1); + this.getCharItemManager().updateInventory(); + } } } catch (Exception e) {