Skip to content

Commit

Permalink
Fix cherrypick conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Apr 15, 2024
1 parent a6675ff commit a2863f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void render(PoseStack poses, int mouseX, int mouseY, float delta) {
this.font.drawShadow(poses, this.title, this.width / 2.0F - this.font.width(this.title) / 2.0F, 12.0F, -1);

if (ConfigObject.getInstance().doDebugRenderTimeRequired()) {
Component debugText = new TextComponent(String.format("%s fps", minecraft.fpsString.split(" ")[0]));
Component debugText = Component.literal(String.format("%s fps", minecraft.fpsString.split(" ")[0]));
int stringWidth = font.width(debugText);
fillGradient(poses, minecraft.screen.width - stringWidth - 2, 32, minecraft.screen.width, 32 + font.lineHeight + 2, -16777216, -16777216);
MultiBufferSource.BufferSource immediate = MultiBufferSource.immediate(Tesselator.getInstance().getBuilder());
Expand Down

0 comments on commit a2863f4

Please sign in to comment.