Skip to content

Commit

Permalink
Optimize GetInventory
Browse files Browse the repository at this point in the history
Update Auctionator plugin for triple compatibility
Synchronize global data storage and options
  • Loading branch information
b-morgan committed May 15, 2021
1 parent a01bae5 commit 28d0853
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 141 deletions.
3 changes: 0 additions & 3 deletions Inventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ function Skillet:GetInventory(player, reagentID)
if self.db.realm.inventoryData[player] and self.db.realm.inventoryData[player][reagentID] then
--DA.DEBUG(1,"inventoryData= "..tostring(self.db.realm.inventoryData[player][reagentID]))
local have, make = string.split(" ", self.db.realm.inventoryData[player][reagentID])
--if numCanUse and have and tonumber(numCanUse) ~= tonumber(have) then
--DA.DEBUG(0,"inventoryData is stale")
--end
return tonumber(have) or 0, tonumber(make) or 0
elseif player == self.currentPlayer then -- UnitName("player")
return GetItemCount(reagentID,false) or 0, 0
Expand Down
Loading

0 comments on commit 28d0853

Please sign in to comment.