Beacons no longer glitch off on grid split (#28518)
This commit is contained in:
parent
6b40b5269e
commit
66835ac84e
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue