fix: use correct coordinates in BufferedPattern2D and NoiseFilter

This commit is contained in:
dordsor21 2024-05-27 19:33:52 +01:00 committed by Jordan
parent 36d2c85fdb
commit 5da6c65df6
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class BufferedPattern2D extends BufferedPattern {
@Override
public boolean set(BlockVector3 pos) {
return set.add(pos.x(), 0, pos.y());
return set.add(pos.x(), 0, pos.z());
}
}

View File

@ -97,7 +97,7 @@ public class NoiseFilter extends AbstractMask {
@Override
public boolean test(BlockVector3 vector) {
//FAWE start - mutable
return noiseGenerator.noise(mutable.setComponents(vector.x(), vector.z(), vector.z())) <= density;
return noiseGenerator.noise(mutable.setComponents(vector.x(), vector.y(), vector.z())) <= density;
//FAWE end
}