mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 04:00:30 +00:00
Fix Bug with peripheral.find()
This commit is contained in:
parent
bfb682bef9
commit
4580f10567
@ -105,8 +105,8 @@ function wrap( _sSide )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function find( sType, fnFilter )
|
function find( sType, fnFilter )
|
||||||
if type( _sSide ) ~= "string" then
|
if type( sType ) ~= "string" then
|
||||||
error( "bad argument #1 (expected string, got " .. type( _sSide ) .. ")", 2 )
|
error( "bad argument #1 (expected string, got " .. type( sType ) .. ")", 2 )
|
||||||
end
|
end
|
||||||
if fnFilter ~= nil and type( fnFilter ) ~= "string" then
|
if fnFilter ~= nil and type( fnFilter ) ~= "string" then
|
||||||
error( "bad argument #2 (expected function, got " .. type( fnFilter ) .. ")", 2 )
|
error( "bad argument #2 (expected function, got " .. type( fnFilter ) .. ")", 2 )
|
||||||
|
Loading…
Reference in New Issue
Block a user