From e186bfe80dbff16cfa24adc74948e3cf49f2c247 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 30 Aug 2021 00:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dset20G=E7=A6=81=E7=94=A8n?= =?UTF-8?q?=E6=A0=BC=E8=BD=AF=E9=99=8D=E9=94=AE=E9=80=BB=E8=BE=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 24484dfa..8451846a 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -244,10 +244,10 @@ function Player:switchKey(id,on) end function Player:set20G(if20g) self._20G=if20g - self:switchKey(13,not if20g) + local f=not self.gameEnv.noTele and not if20g self:switchKey(14,not if20g) - self:switchKey(15,not if20g) - self:switchKey(16,not if20g) + self:switchKey(15,f) + self:switchKey(16,f) if if20g and self.bot then self.bot:switch20G()end end function Player:setHold(count)--Set hold count (false/true as 0/1)