updated
This commit is contained in:
@@ -3,12 +3,6 @@ local function getValue(reactor)
|
||||
return reactor.getTemperature() or 0
|
||||
end
|
||||
|
||||
local function configureReport(monitor)
|
||||
local x,y = monitor.getCursorPos()
|
||||
monitor.setCursorPos(x, y + 1)
|
||||
monitor.clearLine()
|
||||
end
|
||||
|
||||
local function color(reactor)
|
||||
local temperature = getValue(reactor)
|
||||
return colors.black
|
||||
@@ -22,7 +16,6 @@ end
|
||||
local function report(reactor, monitor)
|
||||
local value = getValue(reactor)
|
||||
local color = color(reactor)
|
||||
configureReport(monitor)
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.write("Coolant: " .. value .. "%")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user