neural support

This commit is contained in:
kepler155c@gmail.com 2018-02-09 08:01:02 -05:00
parent 25a917a220
commit 00461483e1
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,12 @@ local function sendInfo()
info.inventory = turtle.getInventory()
info.slotIndex = turtle.getSelectedSlot()
end
if device.neuralInterface then
info.status = device.neuralInterface.status
if not info.status and device.neuralInterface.getMetaOwner then
info.status = 'health: ' .. device.neuralInterface.getMetaOwner().health
end
end
device.wireless_modem.transmit(999, os.getComputerID(), info)
end
end