From b53ecba66d214cf564cf439b0f5ab06b7035cf4e Mon Sep 17 00:00:00 2001 From: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com> Date: Thu, 20 Feb 2025 23:43:14 -0500 Subject: [PATCH] Fix redundant checks in world_remove --- jecs.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jecs.luau b/jecs.luau index 3c82e3e..5c6cc9f 100644 --- a/jecs.luau +++ b/jecs.luau @@ -899,7 +899,7 @@ local function world_remove(world: World, entity: i53, id: i53) end local to = archetype_traverse_remove(world, id, from) - if from and not (from == to) then + if from ~= to then local idr = world.component_index[id] local on_remove = idr.hooks.on_remove if on_remove then