fix: use Lumina sheets in AutoTranslatePayload

This commit is contained in:
goat 2021-04-10 02:58:51 +02:00
parent 70c832573e
commit 6eaf62fc1c
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -5,7 +5,6 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using Dalamud.Data; using Dalamud.Data;
using Dalamud.Data.TransientSheet;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace Dalamud.Game.Text.SeStringHandling.Payloads namespace Dalamud.Game.Text.SeStringHandling.Payloads
@ -121,7 +120,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
// in this case, there will only be one entry for this group id // in this case, there will only be one entry for this group id
row = sheet.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 // many of the names contain valid id ranges after the table name, but we don't need those
var actualTableName = row.LookupTable.Split('[')[0]; var actualTableName = row.LookupTable.RawString.Split('[')[0];
var name = actualTableName switch var name = actualTableName switch
{ {