Fix compile

This commit is contained in:
Brady 2023-06-14 16:08:34 -05:00
parent 7b6f9b3eb6
commit 9672bd2c6d
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 2 additions and 2 deletions

View File

@ -108,14 +108,14 @@ public final class PathRenderer implements IRenderer {
drawPath(Elytra.path.subList(Math.max(behavior.baritone.elytra.playerNear - 30, 0), Math.min(behavior.baritone.elytra.playerNear + 30, Elytra.path.size())), 0, Color.RED, false, 0, 0);
if (behavior.baritone.elytra.goal != null) {
drawDankLitGoalBox(renderView, new GoalBlock(behavior.baritone.elytra.goal), partialTicks, Color.GREEN);
drawGoal(renderView, new GoalBlock(behavior.baritone.elytra.goal), partialTicks, Color.GREEN);
}
if (!behavior.baritone.elytra.lines.isEmpty() && Baritone.settings().renderRaytraces.value) {
IRenderer.startLines(Color.BLUE, settings.pathRenderLineWidthPixels.value, settings.renderPathIgnoreDepth.value);
boolean orig = settings.renderPathAsLine.value;
settings.renderPathAsLine.value = true;
for (Pair<Vec3d, Vec3d> line : behavior.baritone.elytra.lines) {
drawLine(line.first().x, line.first().y, line.first().z, line.second().x, line.second().y, line.second().z);
emitLine(line.first().x, line.first().y, line.first().z, line.second().x, line.second().y, line.second().z);
tessellator.draw();
}
settings.renderPathAsLine.value = orig;