mirror of
https://github.com/kepler155c/opus
synced 2025-10-19 09:47:39 +00:00
neural support
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user