mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-27 01:14:46 +00:00
Update term.redirect check to new style
This commit is contained in:
parent
1d63598d43
commit
c46391555f
@ -11,9 +11,9 @@ end
|
||||
local term = {}
|
||||
|
||||
term.redirect = function( target )
|
||||
if target == nil or type( target ) ~= "table" then
|
||||
error( "Invalid redirect target", 2 )
|
||||
end
|
||||
if type( target ) ~= "table" then
|
||||
error( "bad argument #1 (expected table, got " .. type( target ) .. ")", 2 )
|
||||
end
|
||||
if target == term then
|
||||
error( "term is not a recommended redirect target, try term.current() instead", 2 )
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user