From ce35327ffc4265c3151d561b5a03d30653ca82bb Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 2 Jan 2023 02:47:24 +0000 Subject: shop --- shop2.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shop2.lua b/shop2.lua index aeb1b66..2a6f1d9 100644 --- a/shop2.lua +++ b/shop2.lua @@ -33,8 +33,9 @@ end local function centre(s,w) s=tostring(s) local l = #s - local p = math.floor(math.max(0,w-l)/2)) + local p = math.floor(math.max(0,w-l)/2) return string.rep(" ",p)..s +end local function disp_shopscreen() local m = peripheral.wrap"left" -- cgit v1.2.3