Skip to content

Commit

Permalink
i guess it looks better like this
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft authored and Wide-Cat committed Nov 10, 2023
1 parent f6ace27 commit 9c75933
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private void setTargets() {
targets.clear();

for (PlayerEntity player : mc.world.getPlayers()) {
if (player.squaredDistanceTo(mc.player) > targetRange.get() * targetRange.get() ||
if (player.squaredDistanceTo(mc.player) > Math.pow(targetRange.get(), 2) ||
player.isCreative() ||
player == mc.player ||
player.isDead() ||
Expand Down

0 comments on commit 9c75933

Please sign in to comment.