Do not skip FOV parameter in AimAssist (#285)

This commit is contained in:
Romain
2023-08-25 12:33:47 +02:00
committed by GitHub
parent 8645f2dd22
commit f38dde6b6e

View File

@@ -105,7 +105,7 @@ public class AimAssist extends Module {
if (!PlayerUtils.isWithin(entity, range.get())) return false;
if (!ignoreWalls.get() && !PlayerUtils.canSeeEntity(entity)) return false;
if (entity == mc.player || !entities.get().contains(entity.getType())) return false;
if (entity instanceof PlayerEntity) return Friends.get().shouldAttack((PlayerEntity) entity);
if (entity instanceof PlayerEntity && !Friends.get().shouldAttack((PlayerEntity) entity)) return false;
return RejectsUtils.inFov(entity, fov.get());
}, priority.get());
}