summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"