From 82b1c940308f089f2315821cafa78988431fc5f6 Mon Sep 17 00:00:00 2001 From: Ardi <113623122+hardlyardi@users.noreply.github.com> Date: Sun, 4 Jan 2026 09:39:50 -0600 Subject: [PATCH] fix --- src/jecs.luau | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jecs.luau b/src/jecs.luau index 3a20259..bebe477 100755 --- a/src/jecs.luau +++ b/src/jecs.luau @@ -3864,11 +3864,16 @@ local function world_new(DEBUG: boolean?) return world end -local function ecs_is_tag(world: world, entity: i53): boolean - local idr = world.component_index[entity] +local function ecs_is_tag(world: world, id: i53): boolean + local idr = world.component_index[id] if idr then return bit32.btest(idr.flags, ECS_ID_IS_TAG) end + local entity = id + if ECS_IS_PAIR(id) then + entity = entity_index_get_alive(entity_index, ECS_PAIR_FIRST(id)) :: i53 + if not entity then return false end + end return not WORLD_HAS(world, entity, EcsComponent) end