From 3877075b46d7e9198a38722d91c377f9de1de8ea Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 1 Jun 2024 01:42:26 +0200 Subject: [PATCH] Fix missing th, tw in display funcs --- test.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.lua b/test.lua index 13ebbb8..b41d104 100644 --- a/test.lua +++ b/test.lua @@ -25,6 +25,7 @@ local immediate_reload = false function requestsDisplay() + local tw,th = term.getSize() for i, val in pairs(requests) do local line_num = i-page_start_idx+3 if line_num > 2 and line_num < th then @@ -60,6 +61,7 @@ function requestsDisplay() end function ordersDisplay() + local tw,th = term.getSize() for i, val in pairs(orders) do local line_num = (i-page_start_idx)*2+3 if line_num > 2 and line_num < th-1 then