Skip to content

Picking up backpack with full inventory deletes backpack #288

@Neohedron512

Description

@Neohedron512

Describe the bug

When you have no inventory space, and attempt to pick up a backpack, you "collect" it, but it isn't added to your inventory, nor is it added to your backpack slots. Learned this the hard way after dying and trying to pick up my inventory.

To Reproduce

  1. Fill your inventory completely
  2. Spawn a backpack with any contents
  3. Attempt to pick it up

Expected behavior

Backpacks should either not be picked up when your inventory is full, or attempt to be inserted to your backpack slots when picked up with a full inventory.

Mod Version

3.0.3

Minecraft Version

1.21.1

Modloader

Neoforge 21.1.218

Crash Log (if applicable)

No response

Additional context

The backpack does not appear in the player's nbt anywhere.

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