1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-21 02:03:13 +00:00

Merge pull request from Wilma456/perifix

Fix Bug with peripheral.find()
This commit is contained in:
Daniel Ratcliffe 2017-06-18 15:07:18 +01:00 committed by GitHub
commit 93d1facbab

@ -105,8 +105,8 @@ function wrap( _sSide )
end
function find( sType, fnFilter )
if type( _sSide ) ~= "string" then
error( "bad argument #1 (expected string, got " .. type( _sSide ) .. ")", 2 )
if type( sType ) ~= "string" then
error( "bad argument #1 (expected string, got " .. type( sType ) .. ")", 2 )
end
if fnFilter ~= nil and type( fnFilter ) ~= "string" then
error( "bad argument #2 (expected function, got " .. type( fnFilter ) .. ")", 2 )