Workorders cleared with hireling removal.

This commit is contained in:
2024-05-11 07:51:56 -04:00
parent 52e0b5be4d
commit 408e3a45ca
10 changed files with 61 additions and 48 deletions
@@ -65,8 +65,9 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
WorldGrid.RemoveWorldObject(toRemove);
if (toRemove.getParentZone() != null)
if (toRemove.getParentZone() != null) {
toRemove.getParentZone().zoneMobSet.remove(toRemove);
}
DbManager.removeFromCache(toRemove);
@@ -189,8 +190,9 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
WorldGrid.RemoveWorldObject(toRemove);
if (toRemove.getParentZone() != null)
toRemove.getParentZone().zoneMobSet.remove(toRemove);
if (toRemove.parentZone != null) {
toRemove.parentZone.zoneMobSet.remove(toRemove);
}
DbManager.removeFromCache(toRemove);
@@ -227,7 +229,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
//Add Minion
} else {
Zone zone = npc.getParentZone();
Zone zone = npc.parentZone;
if (zone == null)
return true;