Skip to content

ViewInventoryAction does not handle stack size of zero after using an item #44

Description

@unwize

If you use an consumable Usable with quantity 1, the quantity is then decremented to zero and the stack is auto-removed by the InventoryController logic. The ViewInventoryAction does not detect this and then tries to view that stack index, thus causing a crash.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions