diff --git a/rhythmblock.lua b/rhythmblock.lua index 1181d28..4ffcf88 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -2,13 +2,9 @@ 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 = round(width / 2) -centerHeight = round(width / 2) +centerWidth = width / 2 +centerHeight = width / 2 peripherals = peripheral.getNames() playing = false if #peripherals < 0 then