diff --git a/pumpkin/src/command/args/entities.rs b/pumpkin/src/command/args/entities.rs index 9e27f35d2..31d5f733d 100644 --- a/pumpkin/src/command/args/entities.rs +++ b/pumpkin/src/command/args/entities.rs @@ -130,7 +130,8 @@ pub struct TargetSelector { impl TargetSelector { /// Creates a new target selector with the specified type and default conditions. - fn new(selector_type: EntitySelectorType) -> Self { + #[must_use] + pub fn new(selector_type: EntitySelectorType) -> Self { let mut filter = Vec::new(); match selector_type { EntitySelectorType::Source => filter.push(EntityFilter::Limit(1)),