1
0
mirror of https://github.com/kepler155c/opus synced 2025-01-11 16:20:26 +00:00

neural support

This commit is contained in:
kepler155c@gmail.com 2018-02-09 08:01:02 -05:00
parent 25a917a220
commit 00461483e1

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