mirror of
https://github.com/kepler155c/opus
synced 2025-02-03 19:09:08 +00:00
cleanup
This commit is contained in:
parent
00fe2c9989
commit
bf3875adcb
@ -1107,10 +1107,10 @@ function turtle.dropDownAt(pt, ...) return _actionDownAt(actionsAt.drop, pt,
|
|||||||
function turtle.dropForwardAt(pt, ...) return _actionForwardAt(actionsAt.drop, pt, ...) end
|
function turtle.dropForwardAt(pt, ...) return _actionForwardAt(actionsAt.drop, pt, ...) end
|
||||||
function turtle.dropUpAt(pt, ...) return _actionUpAt(actionsAt.drop, pt, ...) end
|
function turtle.dropUpAt(pt, ...) return _actionUpAt(actionsAt.drop, pt, ...) end
|
||||||
|
|
||||||
function turtle.suckAt(pt, qty) return _actionAt(actionsAt.suck, pt, qty) end
|
function turtle.suckAt(pt, qty) return _actionAt(actionsAt.suck, pt, qty or 64) end
|
||||||
function turtle.suckDownAt(pt, qty) return _actionDownAt(actionsAt.suck, pt, qty) end
|
function turtle.suckDownAt(pt, qty) return _actionDownAt(actionsAt.suck, pt, qty or 64) end
|
||||||
function turtle.suckForwardAt(pt, qty) return _actionForwardAt(actionsAt.suck, pt, qty) end
|
function turtle.suckForwardAt(pt, qty) return _actionForwardAt(actionsAt.suck, pt, qty or 64) end
|
||||||
function turtle.suckUpAt(pt, qty) return _actionUpAt(actionsAt.suck, pt, qty) end
|
function turtle.suckUpAt(pt, qty) return _actionUpAt(actionsAt.suck, pt, qty or 64) end
|
||||||
|
|
||||||
function turtle.compareAt(pt) return _actionAt(actionsAt.compare, pt) end
|
function turtle.compareAt(pt) return _actionAt(actionsAt.compare, pt) end
|
||||||
function turtle.compareDownAt(pt) return _actionDownAt(actionsAt.compare, pt) end
|
function turtle.compareDownAt(pt) return _actionDownAt(actionsAt.compare, pt) end
|
||||||
|
@ -116,8 +116,12 @@ end)
|
|||||||
local info = {
|
local info = {
|
||||||
id = os.getComputerID()
|
id = os.getComputerID()
|
||||||
}
|
}
|
||||||
|
local infoTimer = os.clock()
|
||||||
|
|
||||||
local function sendInfo()
|
local function sendInfo()
|
||||||
|
|
||||||
|
if os.clock() - infoTimer >= 1 then -- don't flood
|
||||||
|
infoTimer = os.clock()
|
||||||
info.label = os.getComputerLabel()
|
info.label = os.getComputerLabel()
|
||||||
info.uptime = math.floor(os.clock())
|
info.uptime = math.floor(os.clock())
|
||||||
if turtle then
|
if turtle then
|
||||||
@ -129,6 +133,7 @@ local function sendInfo()
|
|||||||
end
|
end
|
||||||
device.wireless_modem.transmit(999, os.getComputerID(), info)
|
device.wireless_modem.transmit(999, os.getComputerID(), info)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- every 10 seconds, send out this computer's info
|
-- every 10 seconds, send out this computer's info
|
||||||
Event.onInterval(10, function()
|
Event.onInterval(10, function()
|
||||||
|
Loading…
Reference in New Issue
Block a user