mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-29 06:03:12 +00:00
Correct minor typo in rednet.receive
Caused attempts to set a time-out value to throw "expected number, got number".
This commit is contained in:
parent
fa498e74fb
commit
70c6f3498b
@ -113,7 +113,7 @@ function receive( sProtocolFilter, nTimeout )
|
|||||||
if sProtocolFilter ~= nil and type( sProtocolFilter ) ~= "string" then
|
if sProtocolFilter ~= nil and type( sProtocolFilter ) ~= "string" then
|
||||||
error( "bad argument #1 (expected string, got " .. type( sProtocolFilter ) .. ")", 2 )
|
error( "bad argument #1 (expected string, got " .. type( sProtocolFilter ) .. ")", 2 )
|
||||||
end
|
end
|
||||||
if nTimeout ~= nil and type( nTimeoutl ) ~= "number" then
|
if nTimeout ~= nil and type( nTimeout ) ~= "number" then
|
||||||
error( "bad argument #2 (expected number, got " .. type( nTimeout ) .. ")", 2 )
|
error( "bad argument #2 (expected number, got " .. type( nTimeout ) .. ")", 2 )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user