una-xiv / umbra

Umbra XIV - Adds quality of life improvements to the game and consolidates common UI elements and actions into a single uniform interface.
GNU Affero General Public License v3.0
59 stars 24 forks source link

fix one TravelDestination per AetheryteId #8

Closed LTS-FFXIV closed 2 months ago

LTS-FFXIV commented 2 months ago

In this modified code, the FirstOrDefault method now also checks the SubIndex of the TravelDestination, and the RemoveAll method also checks the SubIndex when removing destinations. This should allow multiple TravelDestination instances per AetheryteId, as long as they have different SubIndex values.