Skip to content

Commit 7ae29d0

Browse files
committed
Use the CallInjectedWraper
Don't use temp cache state as its not needed.
1 parent abd4452 commit 7ae29d0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Structs/Loot.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using ff14bot.Managers;
66
using LlamaLibrary.Helpers;
77
using LlamaLibrary.Memory;
8+
using LlamaLibrary.Utilities;
89

910
namespace LlamaLibrary.Structs;
1011

@@ -115,10 +116,7 @@ private bool Roll(RollOption option)
115116
var thisLootItem = this;
116117
var findIndex = Array.FindIndex(LootHelper.RawLootItems, item => item.Equals(thisLootItem));
117118

118-
using (Core.Memory.TemporaryCacheState(false))
119-
{
120-
result = Core.Memory.CallInjected64<byte>(Offsets.LootFunc, Offsets.LootsAddr, (ulong)option, findIndex) == 1;
121-
}
119+
result = Core.Memory.CallInjectedWraper<byte>(Offsets.LootFunc, Offsets.LootsAddr, (ulong)option, findIndex) == 1;
122120

123121
if (!result)
124122
{
@@ -132,4 +130,4 @@ private bool Roll(RollOption option)
132130
{
133131
return Item?.EnglishName;
134132
}
135-
}
133+
}

0 commit comments

Comments
 (0)