You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
computer.reset() doesn't seem to restart the computer. The following code will print the computer.log to the console but then the computer just shuts down.
function getContainerByHash(hash) local containers = getContainers() if not containers then perror("Containers was nil") end for _, cntr in pairs(containers) do if (cntr.hash == hash) then return cntr end end computer.log(3, "getContainerByHash(): Hash: " .. hash .. " not found.") computer.reset() end
The text was updated successfully, but these errors were encountered:
computer.reset() doesn't seem to restart the computer. The following code will print the computer.log to the console but then the computer just shuts down.
function getContainerByHash(hash) local containers = getContainers() if not containers then perror("Containers was nil") end for _, cntr in pairs(containers) do if (cntr.hash == hash) then return cntr end end computer.log(3, "getContainerByHash(): Hash: " .. hash .. " not found.") computer.reset() end
The text was updated successfully, but these errors were encountered: