mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-05 19:42:54 +00:00
Merge pull request #448 from Wilma456/ComputerCraft-1/writecheck
Fix check of write()
This commit is contained in:
commit
fe0f998c27
@ -171,8 +171,8 @@ function sleep( nTime )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function write( sText )
|
function write( sText )
|
||||||
if sText ~= nil and type( sText ) ~= "string" and type( sText ) ~= "number" then
|
if type( sText ) ~= "string" and type( sText ) ~= "number" then
|
||||||
error( "bad argument #1 (expected string, got " .. type( sText ) .. ")", 2 )
|
error( "bad argument #1 (expected string or number, got " .. type( sText ) .. ")", 2 )
|
||||||
end
|
end
|
||||||
|
|
||||||
local w,h = term.getSize()
|
local w,h = term.getSize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user