Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Don't crazily initialise HeightMapFilter...??
Dieser Commit ist enthalten in:
Ursprung
3e85369765
Commit
05bd84b504
@ -56,14 +56,9 @@ public interface HeightMap {
|
|||||||
layers
|
layers
|
||||||
);
|
);
|
||||||
if (smooth) {
|
if (smooth) {
|
||||||
try {
|
HeightMapFilter filter = new HeightMapFilter(new GaussianKernel(5, 1));
|
||||||
HeightMapFilter filter = (HeightMapFilter) HeightMapFilter.class.getConstructors()[0].newInstance(GaussianKernel.class
|
int diameter = 2 * size + 1;
|
||||||
.getConstructors()[0].newInstance(5, 1));
|
data[1] = filter.filter(data[1], diameter, diameter);
|
||||||
int diameter = 2 * size + 1;
|
|
||||||
data[1] = filter.filter(data[1], diameter, diameter);
|
|
||||||
} catch (IllegalAccessException | InvocationTargetException | InstantiationException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (layers) {
|
if (layers) {
|
||||||
heightMap.applyLayers(data[1]);
|
heightMap.applyLayers(data[1]);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren