Skip to content

Commit

Permalink
fix: make tooltip text for pressing the v key on living tools less co…
Browse files Browse the repository at this point in the history
…nfusing
  • Loading branch information
Elenterius committed Jun 25, 2023
1 parent 478c585 commit 7c7160f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ protected void addTranslations() {
addTooltip("action.deactivate", "deactivate");
addTooltip("action.reload", "reload");
addTooltip("action.cycle", "cycle");
addTooltip("action.switch_mode", "switch mode");

// addTooltip("fire_rate", "Fire Rate");
// addTooltip("accuracy", "Accuracy");
Expand Down
1 change: 1 addition & 0 deletions src/generated/resources/assets/biomancy/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
"tooltip.biomancy.action.deactivate": "deactivate",
"tooltip.biomancy.action.reload": "reload",
"tooltip.biomancy.action.cycle": "cycle",
"tooltip.biomancy.action.switch_mode": "switch mode",
"tooltip.biomancy.living_tool_state_is": "The Tool is %1$s",
"state.biomancy.living_tool.broken": "Broken",
"state.biomancy.living_tool.dormant": "Dormant",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void appendHoverText(ItemStack stack, @Nullable Level level, List<Compone
tooltip.add(ComponentUtil.emptyLine());
appendLivingToolTooltip(stack, tooltip);
tooltip.add(ComponentUtil.emptyLine());
tooltip.add(ClientTextUtil.pressButtonTo(ClientTextUtil.getDefaultKey(), TextComponentUtil.getTooltipText("action.cycle")));
tooltip.add(ClientTextUtil.pressButtonTo(ClientTextUtil.getDefaultKey(), TextComponentUtil.getTooltipText("action.switch_mode")));
}

@Override
Expand Down

0 comments on commit 7c7160f

Please sign in to comment.