Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public DurationController() {
}

private static String toString(int duration) {
if (duration <= 0) return "";
return SkyblockTime.formatTime(duration).getString();
}

Expand All @@ -49,6 +50,9 @@ private static int fromString(String value) {
}

private static boolean isValid(String s) {
// Allow empty string to disable notifications
if (s.isBlank()) return true;

Matcher hoursMatcher = hoursPattern.matcher(s);
Matcher minutesMatcher = minutesPattern.matcher(s);
Matcher secondsMatcher = secondsPattern.matcher(s);
Expand Down