0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Update KillauraHack.java

This commit is contained in:
mdenials 2024-05-29 11:03:57 +05:00 committed by GitHub
parent 5907bf69c3
commit e95027f8dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,8 +150,9 @@ public final class KillauraHack extends Hack
return; return;
Stream<Entity> stream = EntityUtils.getAttackableEntities(); Stream<Entity> stream = EntityUtils.getAttackableEntities();
double rangeSq = range.getValueSq();
stream = stream stream = stream
.filter(e -> MC.player.squaredDistanceTo(e) <= range.getValueSq()); .filter(e -> MC.player.squaredDistanceTo(e) <= rangeSq);
if(fov.getValue() < 360.0) if(fov.getValue() < 360.0)
stream = stream.filter(e -> RotationUtils.getAngleToLookVec( stream = stream.filter(e -> RotationUtils.getAngleToLookVec(