mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-06-26 14:44:50 +02:00
Updated Anvil API (markdown)
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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user