Skip to content

[BUG] Backpack key does not block "use" actions in world #54

@SlashLife

Description

@SlashLife

Describe the bug
When using the backpack key to open a backpack, if a pointed to block in the world offers a "use" action, that action will also be performed.

To Reproduce
Steps to reproduce the behavior:

Scenario A:

  1. Stand next to a bed in the world and wear a backpack.
  2. Hold a backpack key in the main hand.
  3. Wait until evening.
  4. Right click the bed with the backpack key.
    The backpack will open, but you will also go to bed.

Scenario B:

  1. Stand next to a lever in the world and wear a backpack.
  2. Hold a backpack key in the main hand.
  3. Right click the lever
    The backpack will open, but you will also flip the lever.

Expected behavior
Open the backpack, but do not perform the "use" action in the world.

Alternatively (alike to e.g. book & quill) perform the "use" action in the world, but do not open the backpack.

Version info
Spigot 1.20.1 (3871)
Backpacks 2022.1.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions