refactor: switch from deprecated lumina funcs

This commit is contained in:
goat 2021-01-17 21:44:57 +01:00
parent 87df159c40
commit 094099c570
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ namespace Dalamud.Game.Chat.SeStringHandling.Payloads
{
// we need to get the linked table and do the lookup there instead
// in this case, there will only be one entry for this group id
row = sheet.GetRows().First(r => r.Group == this.group);
row = sheet.First(r => r.Group == this.group);
// many of the names contain valid id ranges after the table name, but we don't need those
var actualTableName = row.LookupTable.Split('[')[0];

View file

@ -141,7 +141,7 @@ namespace Dalamud.Game.Chat.SeStringHandling
{
var mapSheet = this.data.GetExcelSheet<Map>();
var matches = this.data.GetExcelSheet<PlaceName>().GetRows()
var matches = this.data.GetExcelSheet<PlaceName>()
.Where(row => row.Name.ToString().ToLowerInvariant() == placeName.ToLowerInvariant())
.ToArray();