From 4c5e5e19680f50afff689737f28bc3e06ddad794 Mon Sep 17 00:00:00 2001 From: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com> Date: Fri, 21 Feb 2025 12:10:24 -0500 Subject: [PATCH] Fix redundant checks in world_remove (#198) --- 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