Skip to content

Commit 1d0a173

Browse files
committed
trim the number in TickUtil
1 parent 570d405 commit 1d0a173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/hsgamer/bettergui/util/TickUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ public static Optional<Long> toMillis(String input) {
6464
function = n -> ticksToMillis(n.longValue());
6565
}
6666

67-
return Validate.getNumber(number).map(function);
67+
return Validate.getNumber(number.trim()).map(function);
6868
}
6969
}

0 commit comments

Comments
 (0)