This commit is contained in:
Dragon Fire
2020-04-21 19:32:32 -04:00
parent ee1c2e6f78
commit 959d8030d1
+1 -1
View File
@@ -107,6 +107,6 @@ module.exports = class HorseRaceCommand extends Command {
const min = Math.floor(time / 60); const min = Math.floor(time / 60);
const sec = Math.floor(time - (min * 60)); const sec = Math.floor(time - (min * 60));
const ms = time - sec - (min * 60); const ms = time - sec - (min * 60);
return `${min}:${sec.padStart(2, '0')}.${ms.toFixed(4).slice(2)}`; return `${min}:${sec.toString().padStart(2, '0')}.${ms.toFixed(4).slice(2)}`;
} }
}; };