idk
This commit is contained in:
parent
2d246ddd92
commit
b65a746152
|
@ -16,7 +16,7 @@ local function checkForUpdate()
|
|||
local update_code_text = update_code_request.readAll()
|
||||
if update_code_text then
|
||||
if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then
|
||||
--make backup
|
||||
-- Make backup
|
||||
fs.copy("startup.lua", "backup.lua")
|
||||
|
||||
local startup_file = fs.open("startup.lua", "r")
|
||||
|
@ -33,15 +33,17 @@ local function checkForUpdate()
|
|||
LAST_USED = os.time()
|
||||
return
|
||||
end
|
||||
|
||||
end
|
||||
else
|
||||
print("Bad file download (core)")
|
||||
end
|
||||
else
|
||||
print("Bad mem read (core)")
|
||||
end
|
||||
else
|
||||
print("Bad download (core)")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function mod.UpdateChecker()
|
||||
while true do
|
||||
|
|
Loading…
Reference in New Issue
Block a user