Mark the last item stored in storage for smart-equip (#22236)

* mark the last item stored in grid inventory

* shift
This commit is contained in:
Nemanja
2023-12-08 13:43:57 -05:00
committed by GitHub
parent 736300d505
commit 8112f84c33
4 changed files with 23 additions and 2 deletions

View File

@@ -75,11 +75,11 @@ public sealed class StorageUIController : UIController, IOnSystemChanged<Storage
if (_container == null)
return;
_container.UpdateContainer(nullEnt);
if (IsDragging)
_menuDragHelper.EndDrag();
_container.UpdateContainer(nullEnt);
if (nullEnt is not null)
{
// center it if we knock it off screen somehow.