mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +00:00
fix: use correct coordinates in BufferedPattern2D and NoiseFilter
This commit is contained in:
parent
36d2c85fdb
commit
5da6c65df6
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user