mirror of
https://github.com/Ukendio/jecs.git
synced 2025-07-01 04:49:16 +00:00
Fix receive_replication.luau removed issue (#243)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
4ff492ceaf
commit
9b57189c3a
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue