Skip to content

Commit

Permalink
Fix distance shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFast-js committed Dec 16, 2023
1 parent dfc2fe6 commit 3cb38c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void handleAncestralParticles(S2APacketParticles packet) {

if (dist > 2 && !particles.contains(new Vec3(pos))) {
if (closest != null) {
if (Utils.GetMC().thePlayer.getDistanceSq(closest.pos) < 50) {
if (Utils.GetMC().thePlayer.getDistance(closest.pos.getX(),closest.pos.getY(),closest.pos.getZ()) < 30) {
return;
}
}
Expand Down

0 comments on commit 3cb38c0

Please sign in to comment.