mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +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);
|
||||
|
||||
var notifyType = data[16];
|
||||
var contentFinderConditionId = BitConverter.ToInt16(data, 36);
|
||||
var contentFinderConditionId = BitConverter.ToUInt16(data, 36);
|
||||
|
||||
|
||||
Task.Run(async () => {
|
||||
if (notifyType != 3 || contentFinderConditionId == 0)
|
||||
return;
|
||||
|
||||
var contentFinderCondition =
|
||||
await XivApi.GetContentFinderCondition(contentFinderConditionId);
|
||||
var contentFinderCondition = this.dalamud.Data.ContentFinderCondition[contentFinderConditionId];
|
||||
|
||||
this.dalamud.Framework.Gui.Chat.Print($"Duty pop: " + contentFinderCondition["Name"]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue