From 123d8ffda8139425db4af8d32eb1cf50bce1528d Mon Sep 17 00:00:00 2001 From: Regisle <49933620+Regisle@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:56:53 +1030 Subject: [PATCH] filter for only poe1 realms and fix sorting (#8367) --- src/Classes/TradeQuery.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Classes/TradeQuery.lua b/src/Classes/TradeQuery.lua index 73b1432058..7c28064107 100644 --- a/src/Classes/TradeQuery.lua +++ b/src/Classes/TradeQuery.lua @@ -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()