From 49dc6f90bc9f97c1ab349dbc7962e0b1ca98eaf2 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 18 Mar 2021 11:11:37 +0800 Subject: [PATCH] =?UTF-8?q?BG=E6=A8=A1=E5=9D=97=E4=B8=8D=E5=86=8D=E7=94=A8?= =?UTF-8?q?LOG.print=E6=8A=A5=E8=83=8C=E6=99=AF=E7=BC=BA=E5=A4=B1=EF=BC=88?= =?UTF-8?q?=E8=A7=A3=E8=80=A6=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/background.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Zframework/background.lua b/Zframework/background.lua index 5279bdbe..a6ed2832 100644 --- a/Zframework/background.lua +++ b/Zframework/background.lua @@ -34,15 +34,10 @@ function BG.setDefault(bg) end function BG.set(background) if not background then background=BG.default end - if not BGs[background]then LOG.print("No BG file: "..background,10,COLOR.orange)return end - if background==BG.cur or not SETTING.bg then return end + if not BGs[background]or background==BG.cur or not SETTING.bg then return end BG.discard() BG.cur=background background=BGs[background] - if not background then - LOG.print("No BG called"..background,"warn") - return - end BG.init= background.init or NULL BG.resize= background.resize or NULL