some stuff
This commit is contained in:
@@ -65,7 +65,11 @@ function component.list(ctype, exact)
|
||||
return desired
|
||||
end
|
||||
|
||||
local allInvoks = 0
|
||||
|
||||
function component.invoke(address, method, ...)
|
||||
allInvoks = allInvoks + 1
|
||||
print(allInvoks)
|
||||
local t = {pcall(cinvoke, address, method, ...)}
|
||||
if computer.energy() <= 0 then sysyield() end -- out of power
|
||||
if computer.isOverused() then sysyield() end -- overused
|
||||
|
||||
Reference in New Issue
Block a user