mirror of
https://github.com/Ukendio/jecs.git
synced 2026-03-18 00:44:32 +00:00
Check that both elements of the pair are tags
This commit is contained in:
parent
a0f6a9a632
commit
8ea8f1f235
3 changed files with 3 additions and 3 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue