aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-brigadier/src/command_dispatcher.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/azalea-brigadier/src/command_dispatcher.rs b/azalea-brigadier/src/command_dispatcher.rs
index 384a28dd..a14b5009 100755
--- a/azalea-brigadier/src/command_dispatcher.rs
+++ b/azalea-brigadier/src/command_dispatcher.rs
@@ -11,7 +11,6 @@ use crate::{
use std::{cmp::Ordering, collections::HashMap, mem, rc::Rc, sync::Arc};
/// The root of the command tree. You need to make this to register commands.
-#[derive(Default)]
pub struct CommandDispatcher<S>
where
Self: Sync + Send,
@@ -278,3 +277,9 @@ impl<S> CommandDispatcher<S> {
// Ok(if forked { successful_forks } else { result })
}
}
+
+impl<S> Default for CommandDispatcher<S> {
+ fn default() -> Self {
+ Self::new()
+ }
+}