From 0be7060b04bc3e24a6db249a7d29ee82506bf610 Mon Sep 17 00:00:00 2001 From: TheEpTic Date: Mon, 8 May 2023 18:54:18 +0100 Subject: [PATCH] Round LoadingBarCommand progress to 2 decimal places --- .../ml/duncte123/skybot/commands/fun/LoadingBarCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/main/java/ml/duncte123/skybot/commands/fun/LoadingBarCommand.java b/bot/src/main/java/ml/duncte123/skybot/commands/fun/LoadingBarCommand.java index 5e7b5abac..240ee4aa0 100644 --- a/bot/src/main/java/ml/duncte123/skybot/commands/fun/LoadingBarCommand.java +++ b/bot/src/main/java/ml/duncte123/skybot/commands/fun/LoadingBarCommand.java @@ -58,7 +58,7 @@ public void execute(@Nonnull CommandContext ctx) { LoadingBar.generateImage(progress), "bar.png" )) .setContent(String.format( - "**%s** is **%s**%% complete.", year, progress + "**%s** is **%s**%% complete.", year, Math.floor(progress * 100) / 100; )).queue(); } catch (IOException e) {