mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-29 11:59:17 +00:00
refactor: remove unused check
This commit is contained in:
@@ -44,11 +44,7 @@ public abstract class CommandNode {
|
||||
}
|
||||
|
||||
protected ArgumentBuilder<CommandSourceStack, ?> compile() {
|
||||
ArgumentBuilder<CommandSourceStack, ?> builder = compileBase();
|
||||
|
||||
if (isMethodOverridden("requires", CommandNode.class)) {
|
||||
builder = builder.requires(this::requires);
|
||||
}
|
||||
ArgumentBuilder<CommandSourceStack, ?> builder = compileBase().requires(this::requires);
|
||||
|
||||
for (CommandNode child : children) {
|
||||
builder = builder.then(child.compile());
|
||||
|
||||
Reference in New Issue
Block a user