From 52d70583a9e6c5f30b78e0d53f7a92e8f183564a Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 29 Aug 2021 13:04:22 -0400 Subject: [PATCH] refactor: update for new API changes --- Quest Map/Plugin.cs | 4 ---- Quest Map/PluginUi.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Quest Map/Plugin.cs b/Quest Map/Plugin.cs index 8dfbbef..7f6de49 100644 --- a/Quest Map/Plugin.cs +++ b/Quest Map/Plugin.cs @@ -3,7 +3,6 @@ using Dalamud.Data; using Dalamud.Game.ClientState; using Dalamud.Game.Command; using Dalamud.Game.Gui; -using Dalamud.Game.Text.SeStringHandling; using Dalamud.IoC; using Dalamud.Plugin; using XivCommon; @@ -28,9 +27,6 @@ namespace QuestMap { [PluginService] internal GameGui GameGui { get; init; } = null!; - [PluginService] - internal SeStringManager SeStringManager { get; init; } = null!; - internal XivCommonBase Common { get; } internal Configuration Config { get; } internal Quests Quests { get; } diff --git a/Quest Map/PluginUi.cs b/Quest Map/PluginUi.cs index a3da52a..7151a7a 100644 --- a/Quest Map/PluginUi.cs +++ b/Quest Map/PluginUi.cs @@ -895,7 +895,7 @@ namespace QuestMap { private static readonly byte[] NewLinePayload = { 0x02, 0x10, 0x01, 0x03 }; private SeString Convert(Lumina.Text.SeString lumina) { - var se = this.Plugin.SeStringManager.Parse(lumina.RawData.ToArray()); + var se = (SeString) lumina; for (var i = 0; i < se.Payloads.Count; i++) { switch (se.Payloads[i].Type) { case PayloadType.Unknown: