1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-06 00:18:06 +00:00

new checkbox control

This commit is contained in:
kepler155c@gmail.com
2018-10-26 18:45:22 -04:00
parent c75938bef9
commit 7220b372bd
3 changed files with 71 additions and 7 deletions

View File

@@ -150,11 +150,13 @@ local function sendInfo()
end
if device.neuralInterface then
info.status = device.neuralInterface.status
if not info.status and device.neuralInterface.getMetaOwner then
info.status = 'health: ' ..
math.floor(device.neuralInterface.getMetaOwner().health /
device.neuralInterface.getMetaOwner().maxHealth * 100)
end
pcall(function()
if not info.status and device.neuralInterface.getMetaOwner then
info.status = 'health: ' ..
math.floor(device.neuralInterface.getMetaOwner().health /
device.neuralInterface.getMetaOwner().maxHealth * 100)
end
end)
end
device.wireless_modem.transmit(999, os.getComputerID(), info)
end