mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-30 21:05:56 -05:00
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:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user