mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-11 18:00:29 +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
|
||||
error( "bad argument #1 (expected string, got " .. type( sProtocolFilter ) .. ")", 2 )
|
||||
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 )
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user