summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-02 02:47:24 +0000
committerubq323 <ubq323@ubq323.website>2023-01-02 02:47:24 +0000
commitce35327ffc4265c3151d561b5a03d30653ca82bb (patch)
tree1fc86b18b780c9078350c9888e21a6898f953ff3
parent96f5a4351db8c9650cd3406de3f066f2847f0a73 (diff)
shop
-rw-r--r--shop2.lua3
1 files changed, 2 insertions, 1 deletions
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"