Skip to content

Commit d01f473

Browse files
LocalIdentityLocalIdentity
andauthored
Fix gems being added to skill groups when sorting dropdown (PathOfBuildingCommunity#1221)
Copy from PathOfBuildingCommunity/PathOfBuilding#8802 Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 593d6ec commit d01f473

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Classes/GemSelectControl.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ end)
4848

4949
function GemSelectClass:CalcOutputWithThisGem(calcFunc, gemData, useFullDPS)
5050
local gemList = self.skillsTab.displayGroup.gemList
51+
local displayGemList = self.skillsTab.displayGroup.displayGemList
5152
local oldGem
5253
if gemList[self.index] then
5354
oldGem = copyTable(gemList[self.index], true)
@@ -82,7 +83,9 @@ function GemSelectClass:CalcOutputWithThisGem(calcFunc, gemData, useFullDPS)
8283
else
8384
gemList[self.index] = nil
8485
end
85-
86+
87+
self.skillsTab.displayGroup.displayGemList = displayGemList
88+
8689
return output, gemInstance
8790
end
8891

0 commit comments

Comments
 (0)