chunk should be cx << 4 not cx << 9

Andrew Gazelka 2018-06-27 21:11:59 -05:00
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