[PR #3241] [MERGED] tooltip fix #4861

Closed
opened 2026-11-03 05:08:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3241
Author: @SolomonNumb1
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/modifier-tooltip


📝 Commits (2)

  • 9d7b4e8 tooltip fix
  • 7fa0fe5 Format modifier lines with format_translation

📊 Changes

1 file changed (+32 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/item_tooltip.rs (+32 -4)

📄 Description

What and why

on non-eng languages,tooltip was broken

Vanilla reference

Follows vanilla net.minecraft.world.item.component.ItemAttributeModifiers.addModifierTooltips and ItemStack.getAttributeModifiersTooltip formatting with standard String.format positional argument indices

Self-check

Check Result
Scope ✅ 1 files, +35 −6
Cargo.lock ➖ no Cargo.lock change
Public tree ✅ pass
Python tests ✅ pass
rustfmt ✅ pass
clippy ✅ pass
tests: horizon-client ✅ 10 passed
doc tests ➖ no library touched
content root tests ➖ content root untouched
Label verified

Screenshots

before Снимок экрана 2026-10-28 192316
Снимок экрана 2026-10-28 192221
Снимок экрана 2026-10-28 192255
after
Снимок экрана 2026-10-28 195215
Снимок экрана 2026-10-28 195238


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3241 **Author:** [@SolomonNumb1](https://github.com/SolomonNumb1) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/modifier-tooltip` --- ### 📝 Commits (2) - [`9d7b4e8`](https://github.com/horizon-rust/horizon/commit/9d7b4e8a2d86bdfda9c491232ab480b6a44fea57) tooltip fix - [`7fa0fe5`](https://github.com/horizon-rust/horizon/commit/7fa0fe50f7f1ecea1c3fb2cff12256aee87aa51a) Format modifier lines with format_translation ### 📊 Changes **1 file changed** (+32 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/item_tooltip.rs` (+32 -4) </details> ### 📄 Description ## What and why <!-- What this changes, and why. Link the issue it fixes ("Fixes #123"). --> on non-eng languages,tooltip was broken ## Vanilla reference <!-- The vanilla classes and methods this follows (tools/rea_vanilla.py), and the harness that checks it. "Horizon-only" for a feature vanilla doesn't have; "none" for tooling or docs. --> Follows vanilla `net.minecraft.world.item.component.ItemAttributeModifiers.addModifierTooltips` and `ItemStack.getAttributeModifiersTooltip` formatting with standard `String.format` positional argument indices ## Self-check <!-- Paste the block `python3 tools/pr_ready.py` prints (`--base upstream/main` from a fork). --> | Check | Result | | --- | --- | | Scope | ✅ 1 files, +35 −6 | | Cargo.lock | ➖ no Cargo.lock change | | Public tree | ✅ pass | | Python tests | ✅ pass | | rustfmt | ✅ pass | | clippy | ✅ pass | | tests: horizon-client | ✅ 10 passed | | doc tests | ➖ no library touched | | content root tests | ➖ content root untouched | | Label | verified | ## Screenshots <!-- For anything players see: before and after. Delete this section otherwise. --> before <img width="492" height="176" alt="Снимок экрана 2026-10-28 192316" src="https://github.com/user-attachments/assets/722eb293-477c-42f7-8486-3e686d70de51" /> <img width="1029" height="267" alt="Снимок экрана 2026-10-28 192221" src="https://github.com/user-attachments/assets/61892b33-a7e1-4bbd-b5c5-2c438828def6" /> <img width="632" height="279" alt="Снимок экрана 2026-10-28 192255" src="https://github.com/user-attachments/assets/6fa4e094-d595-44be-a232-d4afd58b996d" /> after <img width="544" height="263" alt="Снимок экрана 2026-10-28 195215" src="https://github.com/user-attachments/assets/d03c048f-7532-47fe-8ab3-e3ac3a071687" /> <img width="588" height="209" alt="Снимок экрана 2026-10-28 195238" src="https://github.com/user-attachments/assets/45d8f90a-8ad6-4425-8388-09825e38c5e2" /> <!-- Please tick "Allow edits by maintainers": we push small fixups ourselves instead of a round trip. See CONTRIBUTING.md. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:28 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4861
No description provided.