This commit is contained in:
Julian Brammer 2024-06-08 20:50:59 +02:00
parent 52dcebc28c
commit cd3684d159

View File

@ -78,10 +78,6 @@ local function shellRun()
shell.run("shell")
end
local function shellStopCheck()
parallel.waitForAny(shellStopTimer, shellStopKeyEvent)
end
local function shellStopTimer()
while true do
if timer < 1 then
@ -102,6 +98,10 @@ local function shellStopKeyEvent()
end
end
local function shellStopCheck()
parallel.waitForAny(shellStopTimer, shellStopKeyEvent)
end
local function main()
config = getConfig()
local timer = config["keepUnlockedFor"]