manager init moved to the top of method.

This commit is contained in:
2023-08-25 12:54:03 -04:00
parent ab335aef2a
commit ac3588c76a
2 changed files with 4 additions and 5 deletions
+2 -1
View File
@@ -1751,6 +1751,8 @@ public class Mob extends AbstractIntelligenceAgent {
@Override
public void runAfterLoad() {
this.charItemManager = new CharacterItemManager(this);
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
return;
@@ -1866,7 +1868,6 @@ public class Mob extends AbstractIntelligenceAgent {
// Initialize inventory
this.charItemManager = new CharacterItemManager(this);
this.charItemManager.load();
this.loadInventory();