Use Aetheria state handles for current entity UI reads
This commit is contained in:
parent
e08c9e9c3c
commit
2884cef870
4 changed files with 37 additions and 10 deletions
|
|
@ -784,7 +784,10 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
currentEntity = ResolveClient()
|
||||
.CurrentEntityAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Entity
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
@ -866,7 +869,10 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
var current = ResolveClient()
|
||||
.CurrentEntityAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Entity
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
if (current != null && string.Equals(current.EntityKey, entityKey, StringComparison.Ordinal))
|
||||
|
|
|
|||
Loading…
Reference in a new issue