mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-06-26 14:44:50 +02:00
chunk should be cx << 4 not cx << 9
parent
358e0a4f6b
commit
9547bdf909
|
@ -131,8 +131,8 @@ queue.filterWorld(new MCAFilter() {
|
|||
|
||||
@Override
|
||||
public boolean appliesChunk(int cx, int cz) {
|
||||
int distanceX = Math.abs((cx << 9) + 8) - 8;
|
||||
int distanceZ = Math.abs((cz << 9) + 8) - 8;
|
||||
int distanceX = Math.abs((cx << 4) + 8) - 8;
|
||||
int distanceZ = Math.abs((cz << 4) + 8) - 8;
|
||||
int distanceSquared = distanceX * distanceX + distanceZ * distanceZ;
|
||||
if (distanceSquared > radiusSquared) {
|
||||
// Chunk is outside the radius
|
||||
|
|
Loading…
Reference in New Issue
Block a user