[FIX] Fix for iceberg's tooltips#644
Open
kallmetony wants to merge 1 commit intoKiltMC:version/1.20.1from
Open
[FIX] Fix for iceberg's tooltips#644kallmetony wants to merge 1 commit intoKiltMC:version/1.20.1from
kallmetony wants to merge 1 commit intoKiltMC:version/1.20.1from
Conversation
Contributor
Author
|
from #641 |
BluSpring
requested changes
Feb 1, 2026
| private List<ClientTooltipComponent> kilt$gatherForgeTooltips(List<ClientTooltipComponent> original, @Local(argsOnly = true) List<Component> lines, @Local(argsOnly = true) Optional<TooltipComponent> visualTooltipComponent, @Local(argsOnly = true, ordinal = 0) int mouseX, @Local(argsOnly = true) Font font) { | ||
| // Iceberg handles tooltip gathering and wrapping itself, so we should not interfere with it. | ||
| // Otherwise, we get duplicate tooltips when text wrapping is applied. | ||
| if (kilt$isIcebergLoaded) { |
Member
There was a problem hiding this comment.
This feels unsafe, are we sure this doesn't affect other Forge mods?
Contributor
Author
There was a problem hiding this comment.
well, I tested IAF and Minecolonies (with its deps) and everything works great
anyway, this only works in environments with Iceberg, and playing with Iceberg is pretty annoying, so users will end up uninstalling it along with any other mods that depend on it
Member
There was a problem hiding this comment.
Look into other mods, specifically those that use the RenderTooltipEvent.GatherComponents event. Use the GitHub search to find mods that use this event themselves and make sure this code works as expected there.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.