mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Fix receive_replication.luau removed issue
This commit is contained in:
parent
8420d8832b
commit
74c6a35352
1 changed files with 4 additions and 3 deletions
|
@ -74,11 +74,12 @@ return function(world: types.World)
|
||||||
local removed = map.removed
|
local removed = map.removed
|
||||||
|
|
||||||
if removed then
|
if removed then
|
||||||
for i, e in removed do
|
for _, entity in removed do
|
||||||
if not world:contains(e) then
|
entity = ecs_map_get(world, entity)
|
||||||
|
if not world:contains(entity) then
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
world:remove(e, id)
|
world:remove(entity, id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue