Skip to content

Commit

Permalink
Now it should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Intrinsic-zyx committed Jan 16, 2025
1 parent 3f058fb commit a0c6e7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ TEST("world:delete() invokes OnRemove hook", function()
local A = world:entity()
local B = world:entity()

world:add(B, pair(jecs.OnDelete, jecs.Delete))
world:add(Relation, pair(jecs.OnDelete, jecs.Delete))

local entity = world:entity()

Expand All @@ -1694,8 +1694,8 @@ TEST("world:delete() invokes OnRemove hook", function()
called = true
end)

world:add(entity, B)
world:add(entity, pair(Relation, A))
world:add(entity, A)
world:add(entity, pair(Relation, B))

world:delete(B)

Expand Down

0 comments on commit a0c6e7b

Please sign in to comment.