diff --git a/Anvil-API.md b/Anvil-API.md index 8b9d477..18c11e2 100644 --- a/Anvil-API.md +++ b/Anvil-API.md @@ -59,7 +59,7 @@ queue.filterWorld(new MCAFilter() { int distanceX = Math.abs((mca.getX() << 9) + 256) - 256; int distanceZ = Math.abs((mca.getZ() << 9) + 256) - 256; int distanceSquared = distanceX * distanceX + distanceZ * distanceZ; - if (distanceSquared > radius) { + if (distanceSquared > radiusSquared) { // Delete this file since it's outside the radius mca.close(); mca.getFile().delete();