Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Nov 7, 2024
1 parent 2d6d100 commit 6116322
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions Client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ function LootReserve.Client:Init()

self.RollOnLoot = _G.RollOnLoot
_G.RollOnLoot = function(...)
local args = {...};
local success, result = pcall(function() LootReserveRollOnLoot(unpack(args)) end);
local success, result = pcall(function(...) LootReserveRollOnLoot(...) end, ...);
if not success or not result then
self.RollOnLoot(...)
end
Expand Down
4 changes: 0 additions & 4 deletions LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,6 @@ local function CheckBagCache(self)
LootReserve:WipeBagCache();
C_Timer.After(0, function() LootReserve:WipeBagCache(); end);
end);
LootReserve:RegisterEvent("MERCHANT_CONFIRM_TRADE_TIMER_REMOVAL", function()
LootReserve:WipeBagCache();
C_Timer.After(0, function() LootReserve:WipeBagCache(); end);
end);
self:RegisterEvent("ITEM_LOCK_CHANGED", function(bag, slot)
if not slot then return; end
if self.BagCache then
Expand Down

0 comments on commit 6116322

Please sign in to comment.