From 70c6f3498bb9c4e3b2216f43dd1d96e53a2bee47 Mon Sep 17 00:00:00 2001 From: Bomb Bloke Date: Wed, 13 Sep 2017 01:06:59 +1000 Subject: [PATCH] Correct minor typo in rednet.receive Caused attempts to set a time-out value to throw "expected number, got number". --- src/main/resources/assets/computercraft/lua/rom/apis/rednet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/rednet.lua b/src/main/resources/assets/computercraft/lua/rom/apis/rednet.lua index 9c5e2289e..03fc1853b 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/rednet.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/rednet.lua @@ -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