From d4688a73b27c125c39310e667c861fb13f4f371c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 13:36:13 +0100 Subject: [PATCH] Wait for daemon entity rename state --- Aetheria.State.Verify/Program.cs | 8 ++++++++ Assets/Scripts/UI/Menu/InventoryPanel.cs | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index e79468ecf..682ffb576 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -8859,6 +8859,14 @@ static void RequireInventoryEntityRenameRequestAuthority(string root) { throw new InvalidOperationException("InventoryPanel no longer routes entity rename through ActionGameManager."); } + + var renameRequest = inventoryPanel.IndexOf("GameManager.RequestEntityName", StringComparison.Ordinal); + var titleRefreshAfterRename = inventoryPanel.IndexOf("Title.text = _displayedEntity.Name", renameRequest, StringComparison.Ordinal); + if (renameRequest >= 0 && titleRefreshAfterRename >= 0) + { + throw new InvalidOperationException( + "InventoryPanel still refreshes entity title immediately after submitting a daemon rename request."); + } } static void RequireWeaponGroupRequestAuthority(string root) diff --git a/Assets/Scripts/UI/Menu/InventoryPanel.cs b/Assets/Scripts/UI/Menu/InventoryPanel.cs index c4b95c3b7..04e96027c 100644 --- a/Assets/Scripts/UI/Menu/InventoryPanel.cs +++ b/Assets/Scripts/UI/Menu/InventoryPanel.cs @@ -162,7 +162,6 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler Dialog.Show(() => { GameManager.RequestEntityName(_displayedEntity, entityName); - Title.text = _displayedEntity.Name; }); Dialog.MoveToCursor(); });