public static void AddDangerousZone(nManagerSetting.DangerousZone danger) { bool manualAdd = _pather != null && _pather.Continent == Usefuls.ContinentNameMpq; if (_pather == null) { _pather = new Pather(Usefuls.ContinentNameMpq); } if (_pather.Continent != Usefuls.ContinentNameMpq) { _pather.Dispose(); _pather = new Pather(Usefuls.ContinentNameMpq); } if (manualAdd) { var dangers = new List <nManagerSetting.DangerousZone> { danger }; int addedDangers = _pather.ReportDanger(dangers, true); if (addedDangers > 0) { Logging.WriteNavigator(addedDangers + " dangers added."); } } }