1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-21 11:34:02 +00:00

Merge pull request #299 from Wilma456/termbug

Fix Bug with term.setCursorPos
This commit is contained in:
Daniel Ratcliffe
2017-06-03 21:31:56 +01:00
committed by GitHub

View File

@@ -243,6 +243,9 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
end end
function window.setCursorPos( x, y ) function window.setCursorPos( x, y )
if type( x ) ~= "number" or type( y ) ~= "number" then
error( "Expected number, number", 2 )
end
nCursorX = math.floor( x ) nCursorX = math.floor( x )
nCursorY = math.floor( y ) nCursorY = math.floor( y )
if bVisible then if bVisible then