Skip to content

Commit

Permalink
filter for only poe1 realms and fix sorting (#8367)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Nov 19, 2024
1 parent 6d6f044 commit 123d8ff
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 123d8ff

Please sign in to comment.