Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
fix: use correct coordinates in BufferedPattern2D and NoiseFilter
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren