Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc committed Jul 9, 2024
1 parent 036a891 commit cb9d310
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/keystrokesmod/module/impl/combat/KillAura.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}
Expand Down

0 comments on commit cb9d310

Please sign in to comment.