
[Bug] Incorrect tooltip position
Closed this issue · 1 comments
Version Info
- Minecraft, 1.21.7
- Trash Cans, trashcans-1.0.18-fabric-mc1.21.6
- Core lib, supermartijn642corelib-1.1.18b-fabric-mc1.21.7
Description of the Bug
Tooltip position in Item Trash Can GUI is not calculated correctly, see screenshot below for a comparison to normal behavior.
Steps to Reproduce
Use the provided version info and hover over any item while in Item Trash Can GUI.
Vanilla's tooltip rendering doesn't respect the matrix stack, hence my translation for the top left corner was not applied whilst the mouse position offset was applied. This lead to the weird offset you see in game.
This should be fixed now in version 1.1.18b/c of my core library for Minecraft 1.21.6 and 1.21.7
Thank you for reporting the issue!