From e6dfe7309c1a5b286de35bf77b6945788ac20ad8 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Tue, 24 Oct 2017 12:00:52 +0300 Subject: [PATCH] Fixed a case where %hours% would appear, (Last commit) --- .../main/java/com/djrapitops/plan/utilities/FormatUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java b/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java index ea3d8e906..46142a52a 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/FormatUtils.java @@ -130,7 +130,7 @@ public class FormatUtils { if (seconds != 0) { String s = Settings.FORMAT_SECONDS.toString().replace("%seconds%", String.valueOf(seconds)); if (minutes == 0 && s.contains("%minutes%")) { - s = s.replace("%minutes%", Settings.FORMAT_MINUTES.toString().replace("%zero%", "0") + 0); + s = s.replace("%minutes%", Settings.FORMAT_MINUTES.toString().replace("%hours", "").replace("%zero%", "0") + 0); } if (s.contains("%zero%") && String.valueOf(seconds).length() == 1) { builder.append('0');