Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Trade realm not sorting correctly #8367

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Classes/TradeQuery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,10 @@ function TradeQueryClass:UpdateRealms()
end
self.realmIds = {}
for _, value in pairs(data.realms) do
self.realmIds[value.text] = value.id
-- filter out only Path of Exile one realms, as poe2 is not supported yet
if value.text:match("PoE 1 ") then
self.realmIds[value.text:gsub("PoE 1 ", "")] = value.id
end
end
setRealmDropList()

Expand Down
Loading