Check that both elements of the pair are tags

This commit is contained in:
Ukendio 2026-03-01 19:34:03 +01:00
parent a0f6a9a632
commit 8ea8f1f235
3 changed files with 3 additions and 3 deletions

View file

@ -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": {

View file

@ -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

View file

@ -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"