Skip to content

Commit

Permalink
Merge pull request #38 from BelegCufea/SortedFix
Browse files Browse the repository at this point in the history
Fix for error in Sorted plugin
  • Loading branch information
Caerdon authored May 8, 2023
2 parents 7859ad5 + 0e5321e commit fa166ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions external/Sorted/Core.Sorted.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ function SortedMixin:Init()

local PreSort = function(itemData)
local item
if Sorted.IsPlayingCharacterSelected() then
if Sorted.IsPlayingCharacterSelected() and itemData.bag and itemData.slot then
item = CaerdonItem:CreateFromBagAndSlot(itemData.bag, itemData.slot)
else
elseif itemData.link then
item = CaerdonItem:CreateFromItemLink(itemData.link)
else
itemData.caerdonStatus = nil
end

if not item:IsItemDataCached() then
Expand Down

0 comments on commit fa166ea

Please sign in to comment.