Invisible filter for ka (#219)

This commit is contained in:
Soda5601
2023-02-04 02:43:45 +08:00
committed by GitHub
parent e14efb2a4d
commit d886ac93a0
6 changed files with 24 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ public class RejectsUtils {
}
public static boolean inFov(Entity entity, double fov) {
if (fov >= 360) return true;
float[] angle = PlayerUtils.calculateAngle(entity.getBoundingBox().getCenter());
double xDist = MathHelper.angleBetween(angle[0], mc.player.getYaw());
double yDist = MathHelper.angleBetween(angle[1], mc.player.getPitch());

View File

@@ -8,6 +8,6 @@ public class SeedCrackerEP implements SeedCrackerAPI {
@Override
public void pushWorldSeed(long seed) {
Seeds.get().setSeed(String.format("%d", seed));
ChatUtils.info("Seed", "Added seed from SeedCrackerX");
ChatUtils.infoPrefix("Seed", "Added seed from SeedCrackerX");
}
}

View File

@@ -186,7 +186,7 @@ public class WorldGenUtils {
blocks,64,10,32);
if (posList.isEmpty()) return null;
if (posList.size() < 5) {
ChatUtils.warning("Locate", "Only %d block(s) found. This search might be a false positive.", posList.size());
ChatUtils.warningPrefix("Locate", "Only %d block(s) found. This search might be a false positive.", posList.size());
}
return posList.get(0);
}