fix weird rendering issue

This commit is contained in:
Tabbs 2021-05-25 12:41:36 -05:00
parent 3fc36cf798
commit 73e0700ea3

View File

@ -209,7 +209,8 @@ public final class PathRenderer implements IRenderer {
double minY, maxY; double minY, maxY;
double y, y1, y2; double y, y1, y2;
if (settings.renderGoalAsBox.value) { 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 { else {
y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2)); y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2));