diff options
Diffstat (limited to 'azalea-brigadier/src/context/context_chain.rs')
| -rw-r--r-- | azalea-brigadier/src/context/context_chain.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/azalea-brigadier/src/context/context_chain.rs b/azalea-brigadier/src/context/context_chain.rs index 74fe6e01..afafe957 100644 --- a/azalea-brigadier/src/context/context_chain.rs +++ b/azalea-brigadier/src/context/context_chain.rs @@ -28,9 +28,7 @@ impl<S> ContextChain<S> { let child = current.child.clone(); let Some(child) = child else { // Last entry must be executable command - if current.command.is_none() { - return None; - } + current.command.as_ref()?; return Some(ContextChain::new(modifiers, current)); }; |
