mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
parent
a8f53d6414
commit
1fa0777d3b
@ -91,7 +91,7 @@ public class ErodeBrush implements Brush {
|
|||||||
int x2y2 = x2 + z * z;
|
int x2y2 = x2 + z * z;
|
||||||
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
|
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
|
||||||
int cube = x2y2 + y * y;
|
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) {
|
if (cube >= brushSizeSquared) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ public class ErodeBrush implements Brush {
|
|||||||
int x2y2 = x2 + z * z;
|
int x2y2 = x2 + z * z;
|
||||||
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
|
for (int y = -brushSize, rely = 0; y <= brushSize; y++, rely++) {
|
||||||
int cube = x2y2 + y * y;
|
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) {
|
if (cube >= brushSizeSquared) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@ public class RaiseBrush extends ErodeBrush {
|
|||||||
this(6, 0, 1, 1);
|
this(6, 0, 1, 1);
|
||||||
}
|
}
|
||||||
public RaiseBrush(int erodeFaces, int erodeRec, int fillFaces, int fillRec) {
|
public RaiseBrush(int erodeFaces, int erodeRec, int fillFaces, int fillRec) {
|
||||||
super(2, 1, 5, 1);
|
super(erodeFaces, erodeRec, fillFaces, fillRec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,9 +182,9 @@ public class BrushCommands {
|
|||||||
public void erodeBrush(InjectedValueAccess context, @Arg(desc = "The radius for eroding",
|
public void erodeBrush(InjectedValueAccess context, @Arg(desc = "The radius for eroding",
|
||||||
def = "5") Expression radius,
|
def = "5") Expression radius,
|
||||||
@Arg(desc = "erodeFaces",
|
@Arg(desc = "erodeFaces",
|
||||||
def = "6") int erodefaces, @Arg(desc = "erodeRec",
|
def = "2") int erodefaces, @Arg(desc = "erodeRec",
|
||||||
def = "0") int erodeRec, @Arg(desc = "fillFaces",
|
def = "1") int erodeRec, @Arg(desc = "fillFaces",
|
||||||
def = "1") int fillFaces,
|
def = "5") int fillFaces,
|
||||||
@Arg(desc = "fillRec",
|
@Arg(desc = "fillRec",
|
||||||
def = "1") int fillRec) throws WorldEditException {
|
def = "1") int fillRec) throws WorldEditException {
|
||||||
worldEdit.checkMaxBrushRadius(radius);
|
worldEdit.checkMaxBrushRadius(radius);
|
||||||
@ -197,10 +197,10 @@ public class BrushCommands {
|
|||||||
public void pullBrush(InjectedValueAccess context,
|
public void pullBrush(InjectedValueAccess context,
|
||||||
@Arg(desc = "The radius to sample for blending",
|
@Arg(desc = "The radius to sample for blending",
|
||||||
def = "5") Expression radius, @Arg(desc = "erodeFaces",
|
def = "5") Expression radius, @Arg(desc = "erodeFaces",
|
||||||
def = "2") int erodefaces, @Arg(desc = "erodeRec",
|
def = "6") int erodefaces, @Arg(desc = "erodeRec",
|
||||||
def = "1")
|
def = "0")
|
||||||
int erodeRec, @Arg(desc = "fillFaces",
|
int erodeRec, @Arg(desc = "fillFaces",
|
||||||
def = "5") int fillFaces, @Arg(desc = "fillRec",
|
def = "1") int fillFaces, @Arg(desc = "fillRec",
|
||||||
def = "1") int fillRec)
|
def = "1") int fillRec)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
worldEdit.checkMaxBrushRadius(radius);
|
worldEdit.checkMaxBrushRadius(radius);
|
||||||
|
Loading…
Reference in New Issue
Block a user