From 9b57189c3add7e303a6a4ec64ff70134c6db94df Mon Sep 17 00:00:00 2001 From: renyang19910211 <842759495@qq.com> Date: Tue, 1 Jul 2025 04:41:29 +0800 Subject: [PATCH] Fix receive_replication.luau removed issue (#243) --- .../src/ReplicatedStorage/systems/receive_replication.luau | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/src/ReplicatedStorage/systems/receive_replication.luau b/demo/src/ReplicatedStorage/systems/receive_replication.luau index b4be32f..a28e0b7 100755 --- a/demo/src/ReplicatedStorage/systems/receive_replication.luau +++ b/demo/src/ReplicatedStorage/systems/receive_replication.luau @@ -74,11 +74,12 @@ return function(world: types.World) local removed = map.removed if removed then - for i, e in removed do - if not world:contains(e) then + for _, entity in removed do + entity = ecs_map_get(world, entity) + if not world:contains(entity) then continue end - world:remove(e, id) + world:remove(entity, id) end end end