Repository navigation
v1.25.1
A fix for games that add or remove entities during a tick and then index World.Entities.
Fixed
World.Entities[i]andCountwere O(n) per access after an entity was added or removed during a tick (the view scanned past removed entities on every call), so an indexed loop over thousands of entities took tens of milliseconds. They now read a compacted copy built once per change. Which entities are listed, and their order, are unchanged.