little cleanup

This commit is contained in:
Leijurv 2019-03-20 23:06:14 -07:00
parent 04ff365890
commit cac653ddd9
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 4 additions and 4 deletions

View File

@ -72,8 +72,8 @@ public final class LookBehavior extends Behavior implements ILookBehavior {
float oldPitch = ctx.player().rotationPitch; float oldPitch = ctx.player().rotationPitch;
float desiredPitch = this.target.getPitch(); float desiredPitch = this.target.getPitch();
ctx.player().rotationPitch = desiredPitch; ctx.player().rotationPitch = desiredPitch;
if (desiredPitch == oldPitch) { if (desiredPitch == oldPitch && Baritone.settings().freeLook.value) {
//nudgeToLevel(); nudgeToLevel();
} }
this.target = null; this.target = null;
} }

View File

@ -175,7 +175,7 @@ public final class PathRenderer implements Helper {
} }
GlStateManager.color(color.getColorComponents(null)[0], color.getColorComponents(null)[1], color.getColorComponents(null)[2], alpha); GlStateManager.color(color.getColorComponents(null)[0], color.getColorComponents(null)[1], color.getColorComponents(null)[2], alpha);
} }
drawLine(player, x1, y1, z1, x2, y2, z2); drawLine(x1, y1, z1, x2, y2, z2);
tessellator.draw(); tessellator.draw();
} }
if (Baritone.settings().renderPathIgnoreDepth.value) { if (Baritone.settings().renderPathIgnoreDepth.value) {
@ -187,7 +187,7 @@ public final class PathRenderer implements Helper {
GlStateManager.disableBlend(); GlStateManager.disableBlend();
} }
public static void drawLine(Entity player, double bp1x, double bp1y, double bp1z, double bp2x, double bp2y, double bp2z) { public static void drawLine(double bp1x, double bp1y, double bp1z, double bp2x, double bp2y, double bp2z) {
double d0 = mc.getRenderManager().viewerPosX; double d0 = mc.getRenderManager().viewerPosX;
double d1 = mc.getRenderManager().viewerPosY; double d1 = mc.getRenderManager().viewerPosY;
double d2 = mc.getRenderManager().viewerPosZ; double d2 = mc.getRenderManager().viewerPosZ;