login crash bug

This commit is contained in:
2025-01-03 19:11:09 -06:00
parent f9f08c2886
commit 5d338bb87c
+5 -2
View File
@@ -4883,11 +4883,14 @@ public class PlayerCharacter extends AbstractCharacter {
this.getCharItemManager().addItemToInventory(new MobLoot(this, ItemBase.getItemBase(980066), 1, false).promoteToItem(this)); 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); this.setOverFlowEXP(0);
TargetedActionMsg cmm = new TargetedActionMsg(this); TargetedActionMsg cmm = new TargetedActionMsg(this);
DispatchMessage.dispatchMsgToInterestArea(this, cmm, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false); 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)) { if(this.isBoxed && !this.containsEffect(1672601862)) {