Beacons No Longer Glitch Off on Grid Split (#28518) (#2341)

https://github.com/Simple-Station/Einstein-Engines/pull/2337

Co-authored-by: Your Name <EctoplasmIsGood@users.noreply.github.com>
(cherry picked from commit f888234d0746715853477a0fdecee6c50a18e801)
This commit is contained in:
EctoplasmIsGood
2025-04-27 17:04:29 -05:00
committed by Spatison
parent 689f25c8da
commit ef7c1d42b8

View File

@@ -237,6 +237,16 @@ public sealed partial class NavMapSystem : SharedNavMapSystem
component.Chunks.Clear();
component.Beacons.Clear();
// Refresh beacons
var query = EntityQueryEnumerator<NavMapBeaconComponent, TransformComponent>();
while (query.MoveNext(out var qUid, out var qNavComp, out var qTransComp))
{
if (qTransComp.ParentUid != uid)
continue;
UpdateNavMapBeaconData(qUid, qNavComp);
}
// Loop over all tiles
var tileRefs = _mapSystem.GetAllTiles(uid, mapGrid);