Port to 1.21.6 (#633)

* Port to 1.21.6-rc1

* Bump for 1.21.6

---------

Co-authored-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
ellellie
2025-06-18 13:34:29 +12:00
committed by GitHub
parent 9038d94f46
commit 2b8b696d24
15 changed files with 41 additions and 40 deletions

View File

@@ -54,8 +54,8 @@ public class ClientOverlayMessageSink extends ConsoleMessageSink {
}
public void render(GuiGraphics graphics, DeltaTracker delta) {
graphics.pose().pushPose();
graphics.pose().scale(0.5f, 0.5f, 1f);
graphics.pose().pushMatrix();
graphics.pose().scale(0.5f, 0.5f);
var minecraft = Minecraft.getInstance();
var currentMills = Util.getMillis();
var lineHeight = minecraft.font.lineHeight;
@@ -82,7 +82,7 @@ public class ClientOverlayMessageSink extends ConsoleMessageSink {
}
}
graphics.pose().popPose();
graphics.pose().popMatrix();
}
private record Message(Component text, long created) {

View File

@@ -59,10 +59,10 @@ public class ItemWithTooltip extends Item {
@Override
public void renderImage(Font font, int x, int y, int w, int h, GuiGraphics graphics) {
graphics.pose().pushPose();
graphics.pose().translate(0, 0, 400);
graphics.pose().pushMatrix();
graphics.pose().translate(0, 0);
graphics.drawString(font, "Count: " + component.count, x + getWidth(font) / 2, y + (getHeight(font) - font.lineHeight) / 2, 0xFF00FF00);
graphics.pose().popPose();
graphics.pose().popMatrix();
}
}
}