Fix receive_replication.luau removed issue (#243)
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run

This commit is contained in:
renyang19910211 2025-07-01 04:41:29 +08:00 committed by GitHub
parent 4ff492ceaf
commit 9b57189c3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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