Use Aetheria state handles for sector map reads

This commit is contained in:
Meta Vens 2026-06-27 14:03:57 +01:00
commit e0e8265682
4 changed files with 28 additions and 8 deletions

View file

@ -172,7 +172,9 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
try
{
var sectorMap = ResolveClient()
.SectorMapAsync()
.Aetheria()
.SectorMap
.LatestAsync()
.GetAwaiter()
.GetResult();
return (sectorMap?.Zones ?? Array.Empty<AetheriaRuntimeSectorMapZone>())
@ -317,7 +319,10 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
try
{
return ResolveClient()
.CurrentZoneAsync()
.Aetheria()
.Current
.Zone
.LatestAsync()
.GetAwaiter()
.GetResult();
}