diff options
| author | BuildTools <james.jenour@protonmail.com> | 2021-02-10 00:31:43 +0800 |
|---|---|---|
| committer | BuildTools <james.jenour@protonmail.com> | 2021-02-10 00:31:43 +0800 |
| commit | e782e847ccc0eadc4d6e58068ed36d30ce233899 (patch) | |
| tree | d7bc8f605889cc9b040e69bd13faef8ab1cd75e3 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java | |
| parent | 05ecb9ec0980fbf3eb074deb021d6b06172b8fd2 (diff) | |
| download | notenoughupdates-e782e847ccc0eadc4d6e58068ed36d30ce233899.tar.gz notenoughupdates-e782e847ccc0eadc4d6e58068ed36d30ce233899.tar.bz2 notenoughupdates-e782e847ccc0eadc4d6e58068ed36d30ce233899.zip | |
PRE18
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java index 96efe962..a60307d2 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesWaypoints.java @@ -246,7 +246,6 @@ public class DwarvenMinesWaypoints { } } - private void renderWayPoint(String str, Vector3f loc, float partialTicks) { GlStateManager.alphaFunc(516, 0.1F); @@ -257,9 +256,9 @@ public class DwarvenMinesWaypoints { double viewerY = viewer.lastTickPosY + (viewer.posY - viewer.lastTickPosY) * partialTicks; double viewerZ = viewer.lastTickPosZ + (viewer.posZ - viewer.lastTickPosZ) * partialTicks; - double x = loc.x-viewerX; + double x = loc.x-viewerX+0.5f; double y = loc.y-viewerY-viewer.getEyeHeight(); - double z = loc.z-viewerZ; + double z = loc.z-viewerZ+0.5f; double distSq = x*x + y*y + z*z; double dist = Math.sqrt(distSq); |
