Skip to content

Commit

Permalink
Don't system.out spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed Jan 31, 2018
1 parent 69c2a24 commit 0827fe1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import groovy.io.FileType
apply plugin: 'java-library'
apply plugin: 'maven'

version = '0.1.21'
version = '0.1.22'
group = 'com.mojang'

task wrapper(type: Wrapper) {
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/mojang/brigadier/tree/CommandNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ public void addChild(final CommandNode<S> node) {
child.addChild(grandchild);
}
} 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);
if (node instanceof LiteralCommandNode) {
literals.put(node.getName(), (LiteralCommandNode<S>) node);
Expand Down

0 comments on commit 0827fe1

Please sign in to comment.