Skip to content

Commit

Permalink
Add tooltip for interaction rate options
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Jun 22, 2024
1 parent 64a4c30 commit e1b3706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static Screen getConfigScreen(Screen parent) {

general.addEntry(eb.startIntField(localized("option", "interaction_rate_server"),
options.interactionRateServer)
.setTooltip(localized("option", "interaction_rate.tooltip"))
.setErrorSupplier(val -> {
if (val < 0) return Optional.of(
localized("option", "error.low"));
Expand All @@ -53,6 +54,7 @@ else if (val > 100) return Optional.of(

general.addEntry(eb.startIntField(localized("option", "interaction_rate_client"),
options.interactionRateClient)
.setTooltip(localized("option", "interaction_rate.tooltip"))
.setErrorSupplier(val -> {
if (val < 0) return Optional.of(
localized("option", "error.low"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"option.${mod_id}.general": "General",
"option.${mod_id}.interaction_rate_server": "Multiplayer Interaction Rate",
"option.${mod_id}.interaction_rate_client": "Singleplayer Interaction Rate",
"option.${mod_id}.interaction_rate.tooltip": "Reduce to sort faster, increase if you are experiencing packet rate issues",
"option.${mod_id}.hotbar_mode": "Hotbar Mode",

"option.${mod_id}.sorting": "Sorting",
Expand Down

0 comments on commit e1b3706

Please sign in to comment.