mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
fix: make TargetSelector new function public (#1416)
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user