Expose docking target through managed snapshot

This commit is contained in:
Meta Vens 2026-06-28 02:08:17 +01:00
commit a873a31043
6 changed files with 29 additions and 19 deletions

View file

@ -75,11 +75,11 @@ public sealed class AetheriaUnityObservedDockingIndex
dockingBay = null;
if (!TryResolveCurrentDockingSnapshot(out var snapshot) ||
snapshot.CurrentDockingBay == null ||
snapshot.StationRefit == null ||
string.IsNullOrWhiteSpace(snapshot.StationRefit.DockParentEntityKey) ||
string.IsNullOrWhiteSpace(snapshot.DockParentEntityKey) ||
snapshot.DockingBayIndex < 0 ||
!_observedFacadeIndex.TryResolveDockingBayByRecordKey(
snapshot.StationRefit.DockParentEntityKey,
snapshot.CurrentDockingBay.DockingBayIndex,
snapshot.DockParentEntityKey,
snapshot.DockingBayIndex,
out dockingBay))
{
return false;