fix weird rendering issue

This commit is contained in:
Tabbs 2021-05-25 12:41:36 -05:00
parent 3fc36cf798
commit 73e0700ea3
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ public final class PathRenderer implements IRenderer {
double minY, maxY;
double y, y1, y2;
if (settings.renderGoalAsBox.value) {
y = 1;
// y = 1 causes rendering issues when the player is at the same y as the top of a block for some reason
y = .999F;
}
else {
y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2));