mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
adjust #3499 fix to work on Lua 5.2
This commit is contained in:
parent
6f59b11da5
commit
a7f93408d7
@ -202,7 +202,7 @@ end
|
|||||||
|
|
||||||
local function setCursor(nbx, nby)
|
local function setCursor(nbx, nby)
|
||||||
local x, y, w, h = getArea()
|
local x, y, w, h = getArea()
|
||||||
nbx, nby = nbx // 1, nby // 1
|
nbx, nby = math.floor(nbx), math.floor(nby)
|
||||||
nby = math.max(1, math.min(#buffer, nby))
|
nby = math.max(1, math.min(#buffer, nby))
|
||||||
|
|
||||||
local ncy = nby - scrollY
|
local ncy = nby - scrollY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user