aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/context/command_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-brigadier/src/context/command_context.rs')
-rw-r--r--azalea-brigadier/src/context/command_context.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-brigadier/src/context/command_context.rs b/azalea-brigadier/src/context/command_context.rs
index c6210a88..7a2189d9 100644
--- a/azalea-brigadier/src/context/command_context.rs
+++ b/azalea-brigadier/src/context/command_context.rs
@@ -3,7 +3,9 @@ use super::{
string_range::StringRange,
};
use crate::{
- arguments::argument_type::ArgumentType, command::Command, redirect_modifier::RedirectModifier,
+ arguments::argument_type::{ArgumentResult, ArgumentType},
+ command::Command,
+ redirect_modifier::RedirectModifier,
tree::command_node::CommandNode,
};
use std::collections::HashMap;
@@ -12,7 +14,7 @@ pub struct CommandContext<S> {
source: S,
input: String,
command: dyn Command<S>,
- arguments: HashMap<String, ParsedArgument<S, dyn ArgumentType>>,
+ arguments: HashMap<String, ParsedArgument<dyn ArgumentType<dyn ArgumentResult>>>,
root_node: dyn CommandNode<S>,
nodes: Vec<ParsedCommandNode<S>>,
range: StringRange,