From 45c173b59dc8fceb9027976951c455e785fd1c0a Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 06 七月 2026 19:41:17 +0800
Subject: [PATCH] 579 炼器大会 查看位面实现只显示在选服列表中显示的服

---
 Main/System/LianQi/LianQiWin.cs |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/Main/System/LianQi/LianQiWin.cs b/Main/System/LianQi/LianQiWin.cs
index 028cc9c..9a49893 100644
--- a/Main/System/LianQi/LianQiWin.cs
+++ b/Main/System/LianQi/LianQiWin.cs
@@ -57,7 +57,37 @@
 
             var serverIDList = act.GetServerIDList();
             if (serverIDList.Count == 0) return;
-            UIHelper.ShowServersPanel(serverIDList);
+
+            if (null == VersionConfig.config)
+            {
+                throw new System.Exception("VersionConfig is null when show LianQi server list, check VersionConfig.GetAsync for more details");
+            }
+
+            var openedServerIDList = new List<int>();
+            for (int i = 0; i < serverIDList.Count; i++)
+            {
+                int serverID = serverIDList[i];
+                if (VersionConfig.config.isBanShu)
+                {
+                    if (serverID != 8000)
+                        continue;
+                }
+                else
+                {
+                    if (serverID == 8000)
+                        continue;
+                }
+
+                var serverData = ServerListCenter.Instance.GetServerDataEx(serverID);
+                if (serverData.running_status == (int)ServerState.Predicted
+                || serverData.statue != 1)
+                    continue;
+
+                openedServerIDList.Add(serverID);
+            }
+
+            if (openedServerIDList.Count == 0) return;
+            UIHelper.ShowServersPanel(openedServerIDList);
         });
     }
 

--
Gitblit v1.8.0