From 2d2030ecdfb65c77e2a7cbf27ceae22b08759218 Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 10 Jan 2020 20:07:33 -0600 Subject: [PATCH] Fix renderGoalXZBeacon --- .../java/baritone/utils/PathRenderer.java | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/java/baritone/utils/PathRenderer.java b/src/main/java/baritone/utils/PathRenderer.java index c759c3ad..6cd31ba1 100644 --- a/src/main/java/baritone/utils/PathRenderer.java +++ b/src/main/java/baritone/utils/PathRenderer.java @@ -254,24 +254,26 @@ public final class PathRenderer implements IRenderer, Helper { RenderSystem.disableDepthTest(); } - // FIXME - /* - BeaconTileEntityRenderer.renderBeamSegment( - goalPos.getX() - renderPosX, - -renderPosY, - goalPos.getZ() - renderPosZ, + stack.func_227860_a_(); // push + stack.func_227861_a_(goalPos.getX() - renderPosX, -renderPosY, goalPos.getZ() - renderPosZ); // translate + + BeaconTileEntityRenderer.func_228842_a_( + stack, + mc.func_228019_au_().func_228489_c_(), + TEXTURE_BEACON_BEAM, partialTicks, - 1.0, + 1.0F, player.world.getGameTime(), 0, 256, color.getColorComponents(null), // Arguments filled by the private method lol - 0.2D, - 0.25D + 0.2F, + 0.25F ); - */ + + stack.func_227865_b_(); // pop if (settings.renderGoalIgnoreDepth.value) { RenderSystem.enableDepthTest();