mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: use DataManager for fetching ContentFinderCondition
This commit is contained in:
parent
27265244ec
commit
ea4b696a43
1 changed files with 2 additions and 3 deletions
|
|
@ -41,15 +41,14 @@ namespace Dalamud.Game.Network {
|
||||||
Marshal.Copy(dataPtr, data, 0, 64);
|
Marshal.Copy(dataPtr, data, 0, 64);
|
||||||
|
|
||||||
var notifyType = data[16];
|
var notifyType = data[16];
|
||||||
var contentFinderConditionId = BitConverter.ToInt16(data, 36);
|
var contentFinderConditionId = BitConverter.ToUInt16(data, 36);
|
||||||
|
|
||||||
|
|
||||||
Task.Run(async () => {
|
Task.Run(async () => {
|
||||||
if (notifyType != 3 || contentFinderConditionId == 0)
|
if (notifyType != 3 || contentFinderConditionId == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var contentFinderCondition =
|
var contentFinderCondition = this.dalamud.Data.ContentFinderCondition[contentFinderConditionId];
|
||||||
await XivApi.GetContentFinderCondition(contentFinderConditionId);
|
|
||||||
|
|
||||||
this.dalamud.Framework.Gui.Chat.Print($"Duty pop: " + contentFinderCondition["Name"]);
|
this.dalamud.Framework.Gui.Chat.Print($"Duty pop: " + contentFinderCondition["Name"]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue