From 9decfea1b6aefabe7a8efaee2cb0b1e8ea152024 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 7 Jan 2023 05:25:27 +0000 Subject: shop2 --- shop2/disp.lua | 2 +- shop2/main.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shop2/disp.lua b/shop2/disp.lua index 65aebc5..43777ac 100644 --- a/shop2/disp.lua +++ b/shop2/disp.lua @@ -89,4 +89,4 @@ local function run() end end -disp_shopscreen() +return {run=run} diff --git a/shop2/main.lua b/shop2/main.lua index 67d3dba..e4995cc 100644 --- a/shop2/main.lua +++ b/shop2/main.lua @@ -90,7 +90,9 @@ local function run_shop() end end -print(pcall(parallel.waitForAny,run_shop)) +local run_disp = require"shop2.disp".run + +print(pcall(parallel.waitForAny,run_shop,run_disp)) -- print("hi") -- peripheral.call("top","clear") -- peripheral.call("left","clear") -- cgit v1.2.3