点击进入房间后一段时间不能进行其他操作

This commit is contained in:
MrZ626
2021-08-03 16:30:27 +08:00
parent 47af067c03
commit 652aced790
2 changed files with 11 additions and 2 deletions

View File

@@ -317,7 +317,7 @@ function NET.createRoom(roomName,description,capacity,roomType,roomData,password
end
end
function NET.enterRoom(room,password)
if NET.lock('enterRoom',2)then
if NET.lock('enterRoom',6)then
SFX.play('reach',.6)
WS.send('play',JSON.encode{
action=2,