diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/CrystalAura.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/CrystalAura.java index 9ada49cb..fb3a79d5 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/CrystalAura.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/CrystalAura.java @@ -53,6 +53,7 @@ public class CrystalAura extends Module { private Setting place = register(Settings.b("Place", false)); private Setting explode = register(Settings.b("Explode", false)); private Setting range = register(Settings.d("Range", 4.0)); + private Setting tracer = register(Settings.b("Tracer", true)); private Setting antiWeakness = register(Settings.b("Anti Weakness", false)); private Setting checkAbsorption = register(Settings.b("Check Absorption", true)); @@ -243,7 +244,7 @@ public class CrystalAura extends Module { KamiTessellator.prepare(GL11.GL_QUADS); KamiTessellator.drawBox(render, 0x44ffffff, GeometryMasks.Quad.ALL); KamiTessellator.release(); - if (renderEnt != null) { + if (renderEnt != null && tracer.getValue()) { Vec3d p = EntityUtil.getInterpolatedRenderPos(renderEnt, mc.getRenderPartialTicks()); Tracers.drawLineFromPosToPos(render.x - mc.getRenderManager().renderPosX + .5d, render.y - mc.getRenderManager().renderPosY + 1, render.z - mc.getRenderManager().renderPosZ + .5d, p.x, p.y, p.z, renderEnt.getEyeHeight(), 1, 1, 1, 1); } diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java b/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java index ce300080..be0f0c38 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/render/Tracers.java @@ -139,7 +139,6 @@ public class Tracers extends Module { public static void drawLineFromPosToPos(double posx, double posy, double posz, double posx2, double posy2, double posz2, double up, float red, float green, float blue, float opacity) { GL11.glBlendFunc(770, 771); - GL11.glEnable(GL11.GL_BLEND); GL11.glLineWidth(1.5f); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_DEPTH_TEST); @@ -161,7 +160,6 @@ public class Tracers extends Module { GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glDepthMask(true); - GL11.glDisable(GL11.GL_BLEND); GL11.glColor3d(1d, 1d, 1d); GlStateManager.enableLighting(); }