fix: better fix for ring number

Fixes #81
This commit is contained in:
Kazhnuz 2021-04-03 19:32:49 +02:00
parent 02dc4e0d2e
commit 4dc0cc2dd3

View file

@ -112,7 +112,7 @@ function Math.numberToString(x, length)
local length = length or 1 local length = length or 1
local string = "" local string = ""
local x = x local x = x
if (x < math.pow(10, length)) then if (x >= math.pow(10, length)) then
string = string .. x string = string .. x
else else
for i=1, (length-1) do for i=1, (length-1) do