Update 'Controller/CropController.lua'

This commit is contained in:
manuel 2023-01-13 10:04:15 +00:00
parent 984bcb2e9e
commit d0679864cf

View File

@ -34,6 +34,15 @@ function CropController:displayMatrix()
for j = 1, length do
term.setCursorPos(i,j)
if(self.matrix[i][j] >= 0) then
if(self.matrix[i][j] >= 6) then
term.setTextColour(colours.orange)
elseif(self.matrix[i][j] >= 4) then
term.setTextColour(colours.yellow)
elseif(self.matrix[i][j] >= 2) then
term.setTextColour(colours.lime)
else
term.setTextColour(colours.green)
end
term.setTextColour(colours.white)
term.write(self.matrix[i][j])
else