Beacons no longer glitch off on grid split (#28518)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user