Skip to content

Armor Equip Restriction Can Be Bypassed  #9

Description

@SourcePyX

Describe the bug
You can bypass the armor restrictions by either Shift clicking inside the player inventory or by setting the armor into a dispenser and having it dispensed on the player.

Minecraft and Fabric version
minecraft - 1.20.1
fabric - 0.15.3 (api 0.91.0)

Config changes
no

Other mods installed
same result with/without any additional mods

To reproduce
Steps to reproduce the behavior:

  1. Go into creative
  2. Give yourself a leather helmet
  3. Go into survival
  4. Press E to open inventory
  5. Hold Shift and Left click on the helmet
  6. You have now equipped the helmet

Expected behavior
Not equip the locked armor

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