Don't system.out spam
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import groovy.io.FileType
|
|||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
version = '0.1.21'
|
version = '0.1.22'
|
||||||
group = 'com.mojang'
|
group = 'com.mojang'
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
|
|||||||
@@ -80,18 +80,6 @@ public abstract class CommandNode<S> implements Comparable<CommandNode<S>> {
|
|||||||
child.addChild(grandchild);
|
child.addChild(grandchild);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (final CommandNode<S> sibling : children.values()) {
|
|
||||||
for (final String example : node.getExamples()) {
|
|
||||||
if (sibling.isValidInput(example)) {
|
|
||||||
System.out.println("Ambiguity detected in " + getName() + ", siblings " + sibling.getName() + " and " + node.getName() + " can both parse '" + example + "' successfully");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (final String example : sibling.getExamples()) {
|
|
||||||
if (node.isValidInput(example)) {
|
|
||||||
System.out.println("Ambiguity detected in " + getName() + ", siblings " + sibling.getName() + " and " + node.getName() + " can both parse '" + example + "' successfully");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
children.put(node.getName(), node);
|
children.put(node.getName(), node);
|
||||||
if (node instanceof LiteralCommandNode) {
|
if (node instanceof LiteralCommandNode) {
|
||||||
literals.put(node.getName(), (LiteralCommandNode<S>) node);
|
literals.put(node.getName(), (LiteralCommandNode<S>) node);
|
||||||
|
|||||||
Reference in New Issue
Block a user