Skip to content

Commit

Permalink
rp 修复文字抖动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
linngdu664 committed Sep 21, 2024
1 parent 450967e commit 7b03532
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod_name=DRG Laser Pointer
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GNU GPLv3
# The mod version. See https://semver.org/
mod_version=1.0.0
mod_version=1.0.1
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ public static void onRenderGui(RenderGuiEvent.Post event) {
}
poseStack.pushPose();
poseStack.scale(0.8F, 0.8F, 0.8F);
xScreen = Math.round(xScreen * 1.25F);
yScreen = Math.round(yScreen * 1.25F);
xScreen = xScreen * 1.25F;
yScreen = yScreen * 1.25F;
GuiUtil.drawCenteredString(guiGraphics,font, (Component) playerText, xScreen, yScreen - 24, 0xffc1bd93);
GuiUtil.drawCenteredString(guiGraphics,font, (Component) distanceText, xScreen, yScreen + 17, 0xffc1bd93);
poseStack.popPose();
Expand Down

0 comments on commit 7b03532

Please sign in to comment.