Fixes some bugs regarding displaying the exact time remaining
This commit is contained in:
@ -124,7 +124,7 @@ public final class TimeFormatter {
|
||||
String durationFormat = Translator.getTranslatedMessage(TranslatableMessage.DURATION_FORMAT);
|
||||
durationFormat = replacePlaceholder(durationFormat, "{unit}",
|
||||
Translator.getTranslatedMessage(translatableMessage));
|
||||
return replacePlaceholder(durationFormat, "{duration}", castToInt ? String.valueOf((int) duration) :
|
||||
return replacePlaceholder(durationFormat, "{time}", castToInt ? String.valueOf((int) duration) :
|
||||
String.valueOf(duration));
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ public enum TimeInterval {
|
||||
/**
|
||||
* Less than 10 seconds left
|
||||
*/
|
||||
INTERVAL_LESS_THAN_10_SECONDS("momentarily", 10),
|
||||
INTERVAL_LESS_THAN_10_SECONDS("in just a moment", 10),
|
||||
|
||||
/**
|
||||
* Less than 30 seconds left
|
||||
|
Reference in New Issue
Block a user