updated
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
local function report(reactor)
|
||||
if reactor then
|
||||
return reactor.getCoolantFilledPercentage()
|
||||
return (reactor.getCoolantFilledPercentage() or 0) * 100
|
||||
else
|
||||
return "No reactor found"
|
||||
end
|
||||
end
|
||||
|
||||
local function watch(reactor, monitor)
|
||||
local coolantLevel =
|
||||
print("Coolant: " .. report(reactor))
|
||||
sleep(1)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user