1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 18:57:41 +00:00

alignment update

This commit is contained in:
kepler155c@gmail.com
2019-03-06 11:48:09 -05:00
parent 7a57d74e68
commit ce9ffa6c3a
4 changed files with 53 additions and 35 deletions

View File

@@ -150,9 +150,10 @@ local function sendInfo()
end
if device.neuralInterface then
info.status = device.neuralInterface.status
pcall(function()
if not info.status and device.neuralInterface.getMetaOwner then
if not info.status and device.neuralInterface.getMetaOwner then
pcall(function()
local meta = device.neuralInterface.getMetaOwner()
if meta.isWet then
info.status = 'Swimming'
elseif meta.isElytraFlying then
@@ -174,8 +175,8 @@ local function sendInfo()
math.floor(meta.health /
meta.maxHealth * 100)
end
end
end)
end)
end
end
device.wireless_modem.transmit(999, os.getComputerID(), info)
end