Skip to content

Commit

Permalink
Fix interaction rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Jun 22, 2024
1 parent e1b3706 commit 2ae8f53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static Screen getConfigScreen(Screen parent) {
options.interactionRateServer)
.setTooltip(localized("option", "interaction_rate.tooltip"))
.setErrorSupplier(val -> {
if (val < 0) return Optional.of(
if (val < 1) return Optional.of(
localized("option", "error.low"));
else if (val > 100) return Optional.of(
localized("option", "error.high"));
Expand All @@ -56,7 +56,7 @@ else if (val > 100) return Optional.of(
options.interactionRateClient)
.setTooltip(localized("option", "interaction_rate.tooltip"))
.setErrorSupplier(val -> {
if (val < 0) return Optional.of(
if (val < 1) return Optional.of(
localized("option", "error.low"));
else if (val > 100) return Optional.of(
localized("option", "error.high"));
Expand Down

0 comments on commit 2ae8f53

Please sign in to comment.