Workorders cleared with hireling removal.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user