Fix erosion and pull brushes

Fixes #559
This commit is contained in:
IronApollo
2020-09-08 19:17:28 -04:00
committed by Aurora
parent a8f53d6414
commit 1fa0777d3b
3 changed files with 9 additions and 9 deletions

View File

@ -91,7 +91,7 @@ public class ErodeBrush implements Brush {
int x2y2 = x2 + z * z;
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
int cube = x2y2 + y * y;
target.setBlock(x, y, z, current.getBlock(relx, rely, relz));
target.setBlock(relx, rely, relz, current.getBlock(relx, rely, relz));
if (cube >= brushSizeSquared) {
continue;
}
@ -136,7 +136,7 @@ public class ErodeBrush implements Brush {
int x2y2 = x2 + z * z;
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
int cube = x2y2 + y * y;
target.setBlock(x, y, z, current.getBlock(relx, rely, relz));
target.setBlock(relx, rely, relz, current.getBlock(relx, rely, relz));
if (cube >= brushSizeSquared) {
continue;
}

View File

@ -5,6 +5,6 @@ public class RaiseBrush extends ErodeBrush {
this(6, 0, 1, 1);
}
public RaiseBrush(int erodeFaces, int erodeRec, int fillFaces, int fillRec) {
super(2, 1, 5, 1);
super(erodeFaces, erodeRec, fillFaces, fillRec);
}
}