Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
//generate and //deform no longer behave oddly with selections that are only one block thick in either direction.
Dieser Commit ist enthalten in:
Ursprung
4f1196ce2d
Commit
2ee36f7484
@ -322,7 +322,7 @@ public class GenerationCommands {
|
|||||||
final String expression = args.getJoinedStrings(1);
|
final String expression = args.getJoinedStrings(1);
|
||||||
|
|
||||||
final Vector zero;
|
final Vector zero;
|
||||||
final Vector unit;
|
Vector unit;
|
||||||
|
|
||||||
if (args.hasFlag('r')) {
|
if (args.hasFlag('r')) {
|
||||||
zero = new Vector(0,0,0);
|
zero = new Vector(0,0,0);
|
||||||
@ -336,6 +336,10 @@ public class GenerationCommands {
|
|||||||
|
|
||||||
zero = max.add(min).multiply(0.5);
|
zero = max.add(min).multiply(0.5);
|
||||||
unit = max.subtract(zero);
|
unit = max.subtract(zero);
|
||||||
|
|
||||||
|
if (unit.getX() == 0) unit = unit.setX(1.0);
|
||||||
|
if (unit.getY() == 0) unit = unit.setY(1.0);
|
||||||
|
if (unit.getZ() == 0) unit = unit.setZ(1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -346,7 +346,7 @@ public class RegionCommands {
|
|||||||
final String expression = args.getJoinedStrings(0);
|
final String expression = args.getJoinedStrings(0);
|
||||||
|
|
||||||
final Vector zero;
|
final Vector zero;
|
||||||
final Vector unit;
|
Vector unit;
|
||||||
|
|
||||||
if (args.hasFlag('r')) {
|
if (args.hasFlag('r')) {
|
||||||
zero = new Vector(0,0,0);
|
zero = new Vector(0,0,0);
|
||||||
@ -360,6 +360,10 @@ public class RegionCommands {
|
|||||||
|
|
||||||
zero = max.add(min).multiply(0.5);
|
zero = max.add(min).multiply(0.5);
|
||||||
unit = max.subtract(zero);
|
unit = max.subtract(zero);
|
||||||
|
|
||||||
|
if (unit.getX() == 0) unit = unit.setX(1.0);
|
||||||
|
if (unit.getY() == 0) unit = unit.setY(1.0);
|
||||||
|
if (unit.getZ() == 0) unit = unit.setZ(1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren