mirror of
https://github.com/kepler155c/opus
synced 2025-12-06 00:18:06 +00:00
new checkbox control
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user