Query observed zone snapshots explicitly

This commit is contained in:
Meta Vens 2026-06-21 19:40:29 +01:00
commit 43c8c0ed76
4 changed files with 14 additions and 10 deletions

View file

@ -153,8 +153,8 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
.Where(name => !string.IsNullOrWhiteSpace(name))
.ToArray();
var daemonZone = GameManager?.FindDaemonZoneSnapshot(zone?.ZoneIndex ?? -1);
if (daemonZone == null)
if (GameManager == null ||
!GameManager.TryGetObservedZoneSnapshot(zone?.ZoneIndex ?? -1, out var daemonZone))
{
return new AetheriaRuntimeZoneDetailsSurfaceState(
zone.Name,