From 5d338bb87cfc03bd588c209acb6ae1cb6e43fa51 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 3 Jan 2025 19:11:09 -0600 Subject: [PATCH] login crash bug --- src/engine/objects/PlayerCharacter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 2b9491a1..09924ff9 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4883,11 +4883,14 @@ public class PlayerCharacter extends AbstractCharacter { this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this)); } } - if(this.enteredWorld && !this.timestamps.containsKey("lastUpdate")){ + if(this.enteredWorld && !this.timestamps.containsKey("refreshCharacter")) { + this.timestamps.put("refreshCharacter",System.currentTimeMillis() + 10000L); + } + if(System.currentTimeMillis() > this.timestamps.get("refreshCharacter")){ this.setOverFlowEXP(0); TargetedActionMsg cmm = new TargetedActionMsg(this); DispatchMessage.dispatchMsgToInterestArea(this, cmm, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false); - this.timestamps.put("lastUpdate",System.currentTimeMillis()); + this.timestamps.put("refreshCharacter",System.currentTimeMillis() + 10000L); } if(this.isBoxed && !this.containsEffect(1672601862)) {