From 76b992509b0afb86cd8d8c947f115d39380826da Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 9 Oct 2020 17:29:05 +0100 Subject: [PATCH] use format not silly round stuff --- .../core/queue/subscriber/DefaultProgressSubscriber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java b/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java index 6279bbcee..64787ae2e 100644 --- a/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java +++ b/Core/src/main/java/com/plotsquared/core/queue/subscriber/DefaultProgressSubscriber.java @@ -106,7 +106,7 @@ public class DefaultProgressSubscriber implements ProgressSubscriber { if (cancelled.get()) { task.cancel(); } - actor.sendMessage(caption, Template.of("progress", String.valueOf((double) Math.round(this.progress.doubleValue() * 10000) / 100))); + actor.sendMessage(caption, Template.of("progress", String.format("%.2f", this.progress.doubleValue() * 100))); }, interval), wait); } }