forked from MagicBane/Server
moved initial loadInventory call to runAfterLoad
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user