Compare commits

...

3 commits

Author SHA1 Message Date
renyang19910211
b07941ed01
Merge 74c6a35352 into 24dddee82e 2025-06-22 22:22:44 +02:00
Marcus
24dddee82e
Update README.md
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-06-21 23:43:46 +02:00
anysheep
74c6a35352 Fix receive_replication.luau removed issue 2025-06-16 12:27:05 +08:00
2 changed files with 6 additions and 5 deletions

View file

@ -60,8 +60,8 @@ world:set(sara, Name, "sara")
print(getName(parent(sara)))
for e in world:query(pair(ChildOf, alice)) do
print(getName(e), "is the child of alice")
for e, name in world:query(Name, pair(ChildOf, alice)) do
print(name, "is the child of alice")
end
-- Output

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