From 8ea8f1f235711ab61fd8f667eb4b14a113eb0e89 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sun, 1 Mar 2026 19:34:03 +0100 Subject: [PATCH] Check that both elements of the pair are tags --- package.json | 2 +- src/jecs.luau | 2 +- wally.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b0a6eb5..0524da4 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rbxts/jecs", - "version": "0.10.2", + "version": "0.10.3", "description": "Stupidly fast Entity Component System", "main": "src/jecs.luau", "repository": { diff --git a/src/jecs.luau b/src/jecs.luau index 1b63f38..d34364f 100755 --- a/src/jecs.luau +++ b/src/jecs.luau @@ -3927,7 +3927,7 @@ end local function ecs_is_tag(world: world, entity: i53): boolean if ECS_IS_PAIR(entity) then - return ecs_is_tag(world, ecs_pair_first(world, entity)) or ecs_is_tag(world, ecs_pair_second(world, entity)) + return ecs_is_tag(world, ecs_pair_first(world, entity)) and ecs_is_tag(world, ecs_pair_second(world, entity)) end local idr = world.component_index[entity] if idr then diff --git a/wally.toml b/wally.toml index fc79a6d..3e8a91f 100755 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "ukendio/jecs" -version = "0.10.2" +version = "0.10.3" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" license = "MIT"