Skip to content

Commit

Permalink
Merge pull request #996 from mdenials/patch-21
Browse files Browse the repository at this point in the history
replace rangeSq to range.getValueSq()
  • Loading branch information
Alexander01998 authored May 29, 2024
2 parents 1427083 + 829c47c commit 2e01c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/wurstclient/hacks/KillauraHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void onUpdate()
return;

Stream<Entity> stream = EntityUtils.getAttackableEntities();
double rangeSq = Math.pow(range.getValue(), 2);
double rangeSq = range.getValueSq();
stream = stream.filter(e -> MC.player.squaredDistanceTo(e) <= rangeSq);

if(fov.getValue() < 360.0)
Expand Down

0 comments on commit 2e01c02

Please sign in to comment.