Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/mcjty/lib/gui/GenericGuiContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ protected void renderLabels(@Nonnull GuiGraphics graphics, int p_230451_2_, int
public void drawHoveringText(GuiGraphics graphics, List<String> textLines, List<ItemStack> items, int x, int y, Font font) {
if (!textLines.isEmpty()) {
PoseStack matrixStack = graphics.pose();
matrixStack.translate(0.0D, 0.0D, 400.0f);
matrixStack.pushPose();
// @todo 1.17 RenderSystem.disableRescaleNormal();
// @todo 1.17 com.mojang.blaze3d.platform.Lighting.turnOff();
Expand Down Expand Up @@ -200,7 +201,7 @@ public void drawHoveringText(GuiGraphics graphics, List<String> textLines, List<
graphics.fillGradient(xx - 3, yy + k + 2, xx + i + 3, yy + k + 3, j1, j1);

// matrixStack.translate(0.0D, 0.0D, this.itemRenderer.blitOffset);
matrixStack.translate(0.0D, 0.0D, 300.0f);
matrixStack.translate(0.0D, 0.0D, 100.0f);

renderTextLines(graphics, textLines, items, font, xx, yy);

Expand Down