Skip to content

Disappear item if dropping to same original slot #1

Open
@cuong-tran

Description

@cuong-tran

The code in InventoryUIController.OnPointerUp calls to closestSlot.HoldItem first then call m_OriginalSlot.DropItem. This would remove the item if closestSlot happens to be same as m_OriginalSlot.

//Set the new inventory slot with the data
closestSlot.HoldItem(GameController.GetItemByGuid(m_OriginalSlot.ItemGuid));
                
//Clear the original slot
m_OriginalSlot.DropItem();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions