Browse Source

moved initial loadInventory call to runAfterLoad

master
FatBoy-DOTC 1 year ago
parent
commit
2b83db7bba
  1. 5
      src/engine/objects/Mob.java

5
src/engine/objects/Mob.java

@ -980,9 +980,6 @@ public class Mob extends AbstractIntelligenceAgent {
else else
this.currentID = this.dbID; this.currentID = this.dbID;
if (!isPet && !isSiege && !this.isPlayerGuard)
loadInventory();
//store mobs by Database ID //store mobs by Database ID
if (!isPet && !isSiege) if (!isPet && !isSiege)
@ -1931,7 +1928,7 @@ public class Mob extends AbstractIntelligenceAgent {
// Initialize inventory // Initialize inventory
this.charItemManager = new CharacterItemManager(this); this.charItemManager = new CharacterItemManager(this);
this.loadInventory();
try { try {
if (this.equipmentSetID != 0) if (this.equipmentSetID != 0)
this.equip = MobBase.loadEquipmentSet(this.equipmentSetID); this.equip = MobBase.loadEquipmentSet(this.equipmentSetID);

Loading…
Cancel
Save