diff --git a/common/src/main/java/sh/okx/civmodern/common/radar/Radar.java b/common/src/main/java/sh/okx/civmodern/common/radar/Radar.java index ed17aa1..b640809 100644 --- a/common/src/main/java/sh/okx/civmodern/common/radar/Radar.java +++ b/common/src/main/java/sh/okx/civmodern/common/radar/Radar.java @@ -330,7 +330,7 @@ private void renderPlayers(GuiGraphics guiGraphics, float delta) { RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1); guiGraphics.pose().pushPose(); - guiGraphics.pose().translate(dx * v, dz * v, 0); + guiGraphics.pose().translate(dx * v, dz * v, 211); guiGraphics.pose().scale(0.9f, 0.9f, 0); PlayerInfo entry = minecraft.player.connection.getPlayerInfo(player.getUUID()); @@ -351,7 +351,7 @@ private void renderPlayers(GuiGraphics guiGraphics, float delta) { guiGraphics.pose().scale(0.6f, 0.6f, 0); Component component = Component.literal( player.getScoreboardName() + " (" + (hideY() ? ((int) Math.round(Math.sqrt(dx * dx + dz * dz))) : (int) player.getY()) + ")"); - minecraft.font.drawInBatch(component, -minecraft.font.width(component) / 2f, 7, 0xffffff, false, guiGraphics.pose().last().pose(), guiGraphics.bufferSource(), Font.DisplayMode.NORMAL, 0, 0xff); + guiGraphics.drawCenteredString(minecraft.font, component, 0, 7, 0xffffff); guiGraphics.pose().popPose(); } diff --git a/gradle.properties b/gradle.properties index d2507f1..cf0d0a4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3072M archives_base_name=civmodern maven_group=sh.okx.civmodern -mod_version=1.6.5 +mod_version=1.6.6 mod_name=CivModern mod_description=Radar and civ utilities mod_authors=Okx,Protonull