From 8a5bc10b58aeec61a5d8b58e3aa31614c80a2655 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 25 Jan 2023 23:43:36 +0000 Subject: somewhat more resilient shop2 --- shop2/main.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shop2/main.lua b/shop2/main.lua index 078b8d9..7b298db 100644 --- a/shop2/main.lua +++ b/shop2/main.lua @@ -108,7 +108,12 @@ end local run_disp = require"shop2.disp".run +while true do print(pcall(parallel.waitForAny,run_shop,run_disp)) +print("restarting....") +os.sleep(0.5) +end + -- print("hi") -- peripheral.call("top","clear") -- peripheral.call("left","clear") -- cgit v1.2.3