Updated Anvil API (markdown)

Jesse Boyd 2016-10-01 20:55:24 +10:00
parent 5f45b8f138
commit 050c35c93b

@ -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();