From 4dc0cc2dd351ac14ccb9eeea1d77a0cdd952b8eb Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 3 Apr 2021 19:32:49 +0200 Subject: [PATCH] fix: better fix for ring number Fixes #81 --- sonic-radiance.love/core/utils/math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/core/utils/math.lua b/sonic-radiance.love/core/utils/math.lua index 6edc137..871bd2d 100644 --- a/sonic-radiance.love/core/utils/math.lua +++ b/sonic-radiance.love/core/utils/math.lua @@ -112,7 +112,7 @@ function Math.numberToString(x, length) local length = length or 1 local string = "" local x = x - if (x < math.pow(10, length)) then + if (x >= math.pow(10, length)) then string = string .. x else for i=1, (length-1) do