From 3040b294ef8b8379ea22e8309da51658961c80c0 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sat, 11 Jul 2026 16:48:02 +0800 Subject: [PATCH] 2 --- gate.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gate.lua b/gate.lua index 8962349..f535c1d 100644 --- a/gate.lua +++ b/gate.lua @@ -1465,7 +1465,7 @@ local function checkAndApplyUpdate() if not remoteTs or remoteTs <= 0 then return end - local attemptFile = ".last_update_ts_gate2" + local attemptFile = ".last_update_ts2" if fs.exists(attemptFile) then local f = fs.open(attemptFile, "r") local tried = tonumber(f and f.readAll() or "0") or 0 @@ -1476,9 +1476,7 @@ local function checkAndApplyUpdate() end isUpdating = true - if type(drawReadyScreen) == "function" then - pcall(drawReadyScreen) - end + pcall(drawReadyScreen) sleep(0.5) local f = fs.open(attemptFile, "w") @@ -1508,9 +1506,7 @@ local function checkAndApplyUpdate() end isUpdating = false - if type(drawReadyScreen) == "function" then - pcall(drawReadyScreen) - end + pcall(drawReadyScreen) if not lastUpdateError then os.reboot()