mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +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
|
@Override
|
||||||
public boolean set(BlockVector3 pos) {
|
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
|
@Override
|
||||||
public boolean test(BlockVector3 vector) {
|
public boolean test(BlockVector3 vector) {
|
||||||
//FAWE start - mutable
|
//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
|
//FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user