Fixed tooltip rendering issues (#6815)
This commit is contained in:
parent
cbac95de0f
commit
272ea75aab
|
@ -374,7 +374,7 @@ public class GuiUtils
|
||||||
else if (tooltipY + tooltipHeight + 4 > screenHeight)
|
else if (tooltipY + tooltipHeight + 4 > screenHeight)
|
||||||
tooltipY = screenHeight - tooltipHeight - 4;
|
tooltipY = screenHeight - tooltipHeight - 4;
|
||||||
|
|
||||||
final int zLevel = 300;
|
final int zLevel = 400;
|
||||||
RenderTooltipEvent.Color colorEvent = new RenderTooltipEvent.Color(stack, textLines, tooltipX, tooltipY, font, backgroundColor, borderColorStart, borderColorEnd);
|
RenderTooltipEvent.Color colorEvent = new RenderTooltipEvent.Color(stack, textLines, tooltipX, tooltipY, font, backgroundColor, borderColorStart, borderColorEnd);
|
||||||
MinecraftForge.EVENT_BUS.post(colorEvent);
|
MinecraftForge.EVENT_BUS.post(colorEvent);
|
||||||
backgroundColor = colorEvent.getBackground();
|
backgroundColor = colorEvent.getBackground();
|
||||||
|
|
Loading…
Reference in New Issue