Fix missing th, tw in display funcs

This commit is contained in:
Ben 2024-06-01 01:42:26 +02:00
parent 15fdb806aa
commit 3877075b46
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -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