Compare commits

..

2 commits

Author SHA1 Message Date
Six
3e5f20f96c
Merge 2b9c04c90a into 0b6bfea5c8 2025-08-02 15:37:22 -07:00
Ukendio
0b6bfea5c8 Return nil if nth is over count
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-08-02 23:57:50 +02:00

View file

@ -733,7 +733,7 @@ local function world_target(world: world, entity: i53, relation: i53, index: num
local nth = index or 0
if nth >= count then
nth = nth + count + 1
return nil
end
nth = archetype.types[nth + idr.records[archetype_id]]
@ -2759,7 +2759,7 @@ local function world_new()
local nth = index or 0
if nth >= count then
nth = nth + count + 1
return nil
end
nth = archetype.types[nth + idr.records[archetype_id]]