fix(sessions): simplify switch cooldown feedback
Release / release (push) Successful in 11m8s

This commit is contained in:
dmg committed 2026-09-22 23:26:29 -04:00
1 parent c2d84458c7
commit fd5961ccd8
2 files changed
+12 -7

No files matched your search

@@ -505,8 +505,8 @@ public final class EquipmentSessions implements AutoCloseable {
if (!state.canEnter(attempt.character, switchDelay.get(), now)) {
Duration remaining = Duration.between(now, state.lastExit().deadline());
long seconds = remaining.getSeconds() + (remaining.getNano() == 0 ? 0 : 1);
refuse(attempt, "COOLDOWN", "Wait " + seconds + " seconds to switch characters (until "
+ state.lastExit().deadline() + "); the same character may be resumed now."); return;
refuse(attempt, "COOLDOWN", "Wait " + seconds
+ " seconds to switch characters; the same character may be resumed now."); return;
}
}
if (!entryNativeSafe(attempt, loaded.state().orElse(null))) {