diff --git a/src/main/java/keystrokesmod/module/impl/combat/KillAura.java b/src/main/java/keystrokesmod/module/impl/combat/KillAura.java index 16755d3e5..7dca69b08 100644 --- a/src/main/java/keystrokesmod/module/impl/combat/KillAura.java +++ b/src/main/java/keystrokesmod/module/impl/combat/KillAura.java @@ -691,7 +691,11 @@ private void releasePackets() { private boolean behindBlocks(float[] rotations, EntityLivingBase target) { try { - MovingObjectPosition hitResult = RotationUtils.rayCast(attackRange.getInput(), RotationHandler.getRotationYaw(), RotationHandler.getRotationPitch()); + Vec3 eyePos = Utils.getEyePos(); + MovingObjectPosition hitResult = RotationUtils.rayCast( + RotationUtils.getNearestPoint(target.getEntityBoundingBox(), eyePos).distanceTo(eyePos) + 0.05, + RotationHandler.getRotationYaw(), RotationHandler.getRotationPitch() + ); return hitResult != null; } catch (NullPointerException ignored) { }