From a2ab4167f1f0c69d4eff7ed8f8d265758921fbec Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 1 Mar 2021 21:52:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCC=E4=B8=8D=E4=BC=9A=E5=BC=80?= =?UTF-8?q?=E5=90=AF20G=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 1c48db5a..b4f32b37 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -176,10 +176,10 @@ function Player.switchKey(P,id,on) virtualkey[id].ava=on end end -function Player.set20G(P,if20g,init)--Only set init=true when initialize CC, do not use it +function Player.set20G(P,if20g) P._20G=if20g P:switchKey(7,not if20g) - if init and if20g and P.AI_mode=="CC"then CC.switch20G(P)end + if if20g and P.AI_mode=="CC"then CC.switch20G(P)end end function Player.setHold(P,count)--Set hold count (false/true as 0/1) if not count then