修复BG.set函数少拦截一个错误

This commit is contained in:
MrZ626
2021-03-16 14:44:41 +08:00
parent 77e9283b95
commit 88f249e301

View File

@@ -34,7 +34,7 @@ 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)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
BG.discard()
BG.cur=background