From 999ed0fb19a3c6504a94da5df5a7452af15d9cc5 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sun, 8 Oct 2023 03:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=A6=E6=9C=89=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E5=BD=A2=E5=BC=8F=E4=BA=8B=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=8A=A0=E8=BD=BD=E5=B0=B1=E7=88=86=E7=82=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/gamefunc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/gamefunc.lua b/assets/gamefunc.lua index 31222d4d..d2968453 100644 --- a/assets/gamefunc.lua +++ b/assets/gamefunc.lua @@ -209,7 +209,6 @@ function updateWidgetVisible(widgetList) end local sandBoxEnv={ - mechLib=mechLib, math=math, string=string, table=table, @@ -221,9 +220,10 @@ local sandBoxEnv={ type=type, pcall=pcall,xpcall=xpcall, rawget=rawget,rawset=rawset,rawlen=rawlen,rawequal=rawequal, - setfenv=setfenv,setmetatable=setmetatable, + setmetatable=setmetatable, } function setSafeEnv(func) + sandBoxEnv.mechLib=mechLib setfenv(func,TABLE.copy(sandBoxEnv)) end