From 3c02c5957eee16e5e4c36bb92479975bbd08abe9 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 27 Aug 2021 00:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BDcc=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E4=B8=8D=E4=BC=9A=E6=8A=A5=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/bot/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parts/bot/init.lua b/parts/bot/init.lua index aa48f889..cfb2ca13 100644 --- a/parts/bot/init.lua +++ b/parts/bot/init.lua @@ -87,7 +87,11 @@ function BOT.new(P,data) bot.delay0=data.delay if P.gameEnv.holdCount>1 then P:setHold(1)end - local cc=LOADLIB"CCloader" + local cc=REQUIRE"CCloader" + if not cc then + data.type=false + return BOT.new(P,data) + end local opt,wei=cc.getDefaultConfig() wei:fastWeights() opt:setHold(data.hold)