aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-05-05 23:31:27 -0500
committermat <git@matdoes.dev>2023-05-05 23:31:27 -0500
commit084953b89fa800d275b7f712d339f89056e48645 (patch)
treef27f1a1beb898510b51e1d43ced51e420b8571dc
parentf825544e2776ab545ff0a9c674b68183120695cb (diff)
downloadazalea-drasl-084953b89fa800d275b7f712d339f89056e48645.tar.xz
fix CommandDispatcher::default
-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()
+ }
+}