Skip to content

Commit

Permalink
字体位置微调 x2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuRuoLing committed Sep 26, 2024
1 parent 075eac3 commit 5a35e7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void draw(
}
pose.pushPose();
pose.scale(0.8f, 0.8f, 0.8f);
int textX = Math.round((float) (WIDTH - minecraft.font.width(component)) / 0.8f);
int textX = Math.round(WIDTH / 0.8f - minecraft.font.width(component) - 5);
guiGraphics.drawString(minecraft.font, component, textX, 0, 0xf0f0f0, true);
pose.popPose();
arrowOut.draw(guiGraphics, 110, 60);
Expand Down

0 comments on commit 5a35e7d

Please sign in to comment.