Revert "what would happen if we didn't round?"
This reverts commit cea2212bab
.
This commit is contained in:
parent
cea2212bab
commit
07e8f88c41
|
@ -2,9 +2,13 @@ accentColor = colors.gray
|
|||
buttonColor = colors.lightGray
|
||||
backgroundColor = colors.black
|
||||
|
||||
function round(n)
|
||||
return n % 1 >= 0.5 and math.ceil(n) or math.floor(n)
|
||||
end
|
||||
|
||||
width, height = term.getSize()
|
||||
centerWidth = width / 2
|
||||
centerHeight = width / 2
|
||||
centerWidth = round(width / 2)
|
||||
centerHeight = round(width / 2)
|
||||
peripherals = peripheral.getNames()
|
||||
playing = false
|
||||
if #peripherals < 0 then
|
||||
|
|
Loading…
Reference in a new issue