From 3b94659adf7fb25999c2815cb903f71eb1087896 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 30 Oct 2026 05:37:18 +0100 Subject: feat(engine-ecs): add entity::Handle fn to check for component by type --- engine-ecs/src/phase.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine-ecs/src/phase.rs') diff --git a/engine-ecs/src/phase.rs b/engine-ecs/src/phase.rs index e5008ad..8d09ab4 100644 --- a/engine-ecs/src/phase.rs +++ b/engine-ecs/src/phase.rs @@ -1,4 +1,3 @@ -use crate::component::WithAssociatedId as _; use crate::{declare_entity, Component, World}; #[cfg(debug_assertions)] use crate::{ @@ -57,7 +56,7 @@ pub(crate) fn check_parents( continue; }; - if !parent_ent.has_component(Phase::id()) { + if !parent_ent.has_component::() { let parent_ent_name = parent_ent.get::(); tracing::warn!( -- cgit v1.2.3-18-g5258