1
0
Fork 0

wrong offset

This commit is contained in:
Casey 2023-10-17 16:30:18 +03:00
parent 0a8bbd916c
commit de9ea57461
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function()
local ev, evd = table.remove(evd, 1), evd
if ev == "mouse_click" then
local x, y = table.unpack(evd, 1)
local x, y = table.unpack(evd, 2)
if drive.isReady() and y <= #table_of_contents then
drive.seek(-drive.getSize())
drive.seek(table_of_contents[y].offset)