diff --git a/core/src/main/java/tc/oc/pgm/filters/matcher/match/MonostableFilter.java b/core/src/main/java/tc/oc/pgm/filters/matcher/match/MonostableFilter.java index 4cf286c3ee..e9c16d9e78 100644 --- a/core/src/main/java/tc/oc/pgm/filters/matcher/match/MonostableFilter.java +++ b/core/src/main/java/tc/oc/pgm/filters/matcher/match/MonostableFilter.java @@ -181,9 +181,9 @@ public void tick(Match match, Tick tick) { long oldSeconds = lastTick.until(end, ChronoUnit.SECONDS); long newSeconds = now.until(end, ChronoUnit.SECONDS); - // Intentionally use old, as transitioning from 4s to 3.95s should show 4s + // Round up as going from 4s to 3.95s should show 4s if (oldSeconds != newSeconds) - updateBossBar(filterable, Duration.ofSeconds(oldSeconds)); + updateBossBar(filterable, Duration.ofSeconds(newSeconds + 1)); } }); @@ -241,7 +241,7 @@ private Component getMessage(Duration remaining) { } private float progress(Duration remaining) { - return Math.min(1f, (float) remaining.toMillis() / duration.toMillis()); + return Math.min(1f, (float) remaining.getSeconds() / duration.getSeconds()); } } }