mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Cleanup
This commit is contained in:
parent
ee79abff67
commit
f6f08da620
@ -43,8 +43,7 @@ public abstract class ArbitraryShape {
|
|||||||
double y = position.getY();
|
double y = position.getY();
|
||||||
double z = position.getZ();
|
double z = position.getZ();
|
||||||
|
|
||||||
if (!isInside(x, y, z))
|
if (!isInside(x, y, z)) continue;
|
||||||
continue;
|
|
||||||
|
|
||||||
if (hollow) {
|
if (hollow) {
|
||||||
boolean draw = false;
|
boolean draw = false;
|
||||||
|
@ -340,7 +340,8 @@ public class GenerationCommands {
|
|||||||
try {
|
try {
|
||||||
expression = Expression.compile(args.getJoinedStrings(1), "x", "y", "z");
|
expression = Expression.compile(args.getJoinedStrings(1), "x", "y", "z");
|
||||||
expression.optimize();
|
expression.optimize();
|
||||||
} catch (ExpressionException e) {
|
}
|
||||||
|
catch (ExpressionException e) {
|
||||||
player.printError(e.getMessage());
|
player.printError(e.getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -353,7 +354,8 @@ public class GenerationCommands {
|
|||||||
protected boolean isInside(double x, double y, double z) {
|
protected boolean isInside(double x, double y, double z) {
|
||||||
try {
|
try {
|
||||||
return expression.evaluate(x, y, z) > 0;
|
return expression.evaluate(x, y, z) > 0;
|
||||||
} catch (Exception e) {
|
}
|
||||||
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -372,7 +374,8 @@ public class GenerationCommands {
|
|||||||
protected boolean isInside(double x, double y, double z) {
|
protected boolean isInside(double x, double y, double z) {
|
||||||
try {
|
try {
|
||||||
return expression.evaluate(x - placementX, y - placementY, z - placementZ) > 0;
|
return expression.evaluate(x - placementX, y - placementY, z - placementZ) > 0;
|
||||||
} catch (Exception e) {
|
}
|
||||||
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -391,7 +394,8 @@ public class GenerationCommands {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return expression.evaluate(scaled.getX(), scaled.getY(), scaled.getZ()) > 0;
|
return expression.evaluate(scaled.getX(), scaled.getY(), scaled.getZ()) > 0;
|
||||||
} catch (Exception e) {
|
}
|
||||||
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user