I tried this way

But it wont detect strings ofr some reason!?
This commit is contained in:
Nameless-123 committed 2020-04-19 10:23:53 +02:00
1 parent 771fc8a437
commit b16c0abc54
1 file changed
+4 -1
@@ -274,6 +274,8 @@ public class DrawCommand {
Predicate<CachedBlockPosition> replacement){ Predicate<CachedBlockPosition> replacement){
int succeeded=0; int succeeded=0;
direction=direction.toLowerCase().replaceAll("\\s","");
if(direction=="x"){ if(direction=="x"){
drawConex(source, pos, radius, height, pointup, block, replacement); drawConex(source, pos, radius, height, pointup, block, replacement);
succeeded=1; succeeded=1;
@@ -290,7 +292,8 @@ public class DrawCommand {
} }
if(direction!="x" && direction!="y" && direction!="z"){ if(direction!="x" && direction!="y" && direction!="z"){
Messenger.m(source,"Invalid direction, must be \"x\",\"y\" or \"z\""); Messenger.m(source,"gi "+direction+" is an invalid direction, must be x, y or z");
System.out.println(direction);
} }
return succeeded; return succeeded;
} }