Skip to content

Commit c11035a

Browse files
fix: renderWaypointText distance display incorrect position
1 parent fb5633d commit c11035a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mod/src/main/kotlin/gg/skytils/skytilsmod/utils/RenderUtil.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,21 +219,21 @@ object RenderUtil {
219219
}
220220
drawNametag(renderX, renderY, renderZ, str, Color.WHITE, partialTicks, matrixStack)
221221
//#if MC>=12000
222-
matrixStack.multiply(mc.entityRenderDispatcher.rotation)
222+
// matrixStack.multiply(mc.entityRenderDispatcher.rotation)
223223
//#else
224224
//$$ matrixStack.rotate(-mc.entityRenderDispatcher.cameraYaw, 0.0f, 1.0f, 0.0f)
225225
//$$ matrixStack.rotate(mc.entityRenderDispatcher.cameraPitch, 1.0f, 0.0f, 0.0f)
226226
//#endif
227-
matrixStack.translate(0.0, -0.25, 0.0)
227+
// matrixStack.translate(0.0, -0.25, 0.0)
228228
//#if MC>=12000
229-
matrixStack.multiply(mc.entityRenderDispatcher.rotation.invert())
229+
// matrixStack.multiply(mc.entityRenderDispatcher.rotation.invert())
230230
//#else
231231
//$$ matrixStack.rotate(-mc.entityRenderDispatcher.cameraPitch, 1.0f, 0.0f, 0.0f)
232232
//$$ matrixStack.rotate(mc.entityRenderDispatcher.cameraYaw, 0.0f, 1.0f, 0.0f)
233233
//#endif
234234
drawNametag(
235235
renderX,
236-
renderY,
236+
renderY - 0.25,
237237
renderZ,
238238
"${ChatColor.YELLOW}${dist.roundToInt()}m",
239239
Color.WHITE,

0 commit comments

Comments
 (0)