From 9c96e10151e38d56cf77cf66499453e57150f659 Mon Sep 17 00:00:00 2001 From: Chocolate Milk Date: Sat, 10 Jan 2026 06:40:04 -0600 Subject: [PATCH] meow --- rokit.toml | 8 ++++---- src/jecs.luau | 19 +++++++++++++------ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/rokit.toml b/rokit.toml index 9488feb..d2b2548 100755 --- a/rokit.toml +++ b/rokit.toml @@ -1,5 +1,5 @@ -[tools] -wally = "upliftgames/wally@0.3.2" -rojo = "rojo-rbx/rojo@7.7.0-rc.1" -luau = "luau-lang/luau@0.703.0" +[tools] +wally = "upliftgames/wally@0.3.2" +rojo = "rojo-rbx/rojo@7.7.0-rc.1" +luau = "luau-lang/luau@0.703.0" zune = "scythe-technology/zune@0.5.1" \ No newline at end of file diff --git a/src/jecs.luau b/src/jecs.luau index bebe477..8fb97b2 100755 --- a/src/jecs.luau +++ b/src/jecs.luau @@ -3869,12 +3869,19 @@ local function ecs_is_tag(world: world, id: i53): boolean 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) + if ECS_IS_PAIR(id) then + local relation = entity_index_get_alive(entity_index, ECS_PAIR_FIRST(id)) :: i53 + if not relation then + return false + end + if WORLD_HAS(world, relation, EcsComponent) then + return false + end + local target = entity_index_get_alive(entity_index, ECS_PAIR_SECOND(id)) :: i53 + if not target then return false end + return not WORLD_HAS(world, target, EcsComponent) + end + return not WORLD_HAS(world, id, EcsComponent) end local function ecs_entity_record(world: world, entity: i53)