Fix showing the inventory button on entities without any inventory slots (#29728)
This commit is contained in:
@@ -132,6 +132,9 @@ public sealed class InventoryUIController : UIController, IOnStateEntered<Gamepl
|
||||
if (clientInv == null)
|
||||
{
|
||||
_inventoryHotbar?.ClearButtons();
|
||||
if (_inventoryButton != null)
|
||||
_inventoryButton.Visible = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -409,6 +412,8 @@ public sealed class InventoryUIController : UIController, IOnStateEntered<Gamepl
|
||||
{
|
||||
slotGroup.ClearButtons();
|
||||
}
|
||||
|
||||
UpdateInventoryHotbar(null);
|
||||
}
|
||||
|
||||
private void SpriteUpdated(SlotSpriteUpdate update)
|
||||
|
||||
Reference in New Issue
Block a user