mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 03:51:45 +01:00
Fixed a case where %hours% would appear, (Last commit)
This commit is contained in:
parent
19e16a9afe
commit
e6dfe7309c
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user