From ab4a055194bf70addfacf11fc620202e2fd236e3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 24 Jun 2021 03:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=98=93=E8=AF=BB=E7=9A=84=E8=BF=9B?= =?UTF-8?q?=E6=88=BF=E7=89=88=E6=9C=AC=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/net_rooms.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parts/scenes/net_rooms.lua b/parts/scenes/net_rooms.lua index 78349f5a..36c3f563 100644 --- a/parts/scenes/net_rooms.lua +++ b/parts/scenes/net_rooms.lua @@ -9,6 +9,12 @@ local gc_print,gc_printf=gc.print,gc.printf local NET=NET local fetchTimer +local compatibleVer={ + "V0.15.2", + "V0.15.3", + "V0.15.4", +} + local roomList=WIDGET.newListBox{name="roomList",x=50,y=50,w=800,h=440,lineH=40,drawF=function(ifSel,id,item) setFont(35) if ifSel then @@ -72,7 +78,7 @@ function scene.keyDown(key) elseif roomList:getLen()>0 and key=="return"then local R=roomList:getSel() if NET.getlock('fetchRoom')or not R then return end - if R.roomInfo.version:find("^V0%.15%.[234]$")then + if TABLE.find(compatibleVer,R.roomInfo.version)then NET.enterRoom(R,passwordBox.value) else MES.new('error',"Version doesn't compatible 版本不兼容")