some stuff

This commit is contained in:
2026-03-15 22:51:09 +01:00
parent 9c1062c076
commit 83fd3ba2c8
3 changed files with 13 additions and 8 deletions

View File

@@ -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