[Bug]: CuriosScreen#renderTooltip doesn't works good
westernat opened this issue ยท 0 comments
Minecraft Version
1.21.1
What happened?
This method does not cause guiGraphics.tooltipStack to be assigned, which makes the RenderTooltipEvent.GatherComponents event vulnerable to invalidation, as it is often necessary to get the itemStack to modify the components
In contrast, this method works better
net.minecraft.client.gui.GuiGraphics#renderTooltip(net.minecraft.client.gui.Font, java.util.List<net.minecraft.network.chat.Component>, java.util.Optional<net.minecraft.world.inventory.tooltip.TooltipComponent>, net.minecraft.world.item.ItemStack, int, int)
Relevant Log Outputs
No response