manager init moved to the top of method.

This commit is contained in:
MagicBot committed 2023-08-25 12:54:03 -04:00
1 parent ab335aef2a
commit ac3588c76a
2 files changed
+4 -5

No files matched your search

+2 -4
View File
@@ -806,6 +806,8 @@ public class NPC extends AbstractCharacter {
@Override
public void runAfterLoad() {
this.charItemManager = new CharacterItemManager(this);
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
return;
@@ -847,10 +849,6 @@ public class NPC extends AbstractCharacter {
if (wordCount(this.name) < 2 && this.contract != null)
this.name += " the " + this.contract.getName();
// Initialize inventory
this.charItemManager = new CharacterItemManager(this);
// Configure parent zone adding this NPC to the
// zone collection