mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
use format not silly round stuff
This commit is contained in:
parent
925978db8f
commit
76b992509b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user