From d58a67012d2e0aef361efe74480bcc55dec356c8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 13 Aug 2021 01:22:23 +0800 Subject: [PATCH] =?UTF-8?q?rnd=E5=BA=8F=E5=88=97=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=AE=97=E6=B3=95=E5=9C=A8=E5=BA=8F=E5=88=97=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=9D=97=E7=9A=84=E6=97=B6=E5=80=99=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/seqGenerators.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parts/player/seqGenerators.lua b/parts/player/seqGenerators.lua index 7898acf8..5ff0dadb 100644 --- a/parts/player/seqGenerators.lua +++ b/parts/player/seqGenerators.lua @@ -131,7 +131,10 @@ local seqGenerators={ rnd=function(P,seq0) if #seq0==1 then local i=seq0[1] - while true do P:getNext(i)yield()end + while true do + while #P.nextQueue<6 do P:getNext(i)end + yield() + end else local rndGen=P.seqRND local len=#seq0