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