Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-86252

Shields stay blocking and allow left-clicking under a specific condition



    • Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w33c, Minecraft 15w44b, Minecraft 15w51b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17b, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07c, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w21b, Minecraft 18w22a, Minecraft 18w22b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w03c, Minecraft 19w04b, Minecraft 19w07a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3, 1.14.4, 19w40a, 1.15.2, 20w08a, 20w10a, 20w19a, 20w22a, 1.16.1, 1.16.2, 1.16.4, 21w03a, 1.16.5, 1.17, 1.17.1, 21w43a, 1.18.1 Release Candidate 2, 1.18.1, 1.18.2, 22w15a
    • Confirmed
    • Player
    • Important


      The bug

      In some situations the player stops blocking with a shield client-side and therefore can attack again, but server-side they are still blocking. This allows them to attack and block at the same time, which should not be possible.

      How to reproduce

      1. Hold a shield in any hand and block with it
      2. Deflect an arrow with it, observe that the shield moves as it loses durability
      3. During the movement, without releasing the right mouse button, hover over any container (I've tested with a dispenser only, but believe it works with every one)
      4. Before the shield returns you access the container, now you can release the right mouse button
      5. Upon closing the container UI you are no longer blocking, but the blocking effect persists (you still deflect arrows and the shield still loses durability) until you right click again.

      While the effect of blocking persists, you can attack normally as if you weren't blocking.

      This can also be reproduced by blocking while entering a nether portal (see MC-183694).

      Code analysis

      Code analysis by marcono1234 can be found in this comment.


        1. 2016-02-20_10.14.17.png
          374 kB
        2. 2018-02-15 15-03-10.mp4
          4.20 MB
        3. blockingbug.mp4
          5.34 MB
        4. MC-86252.mp4
          7.33 MB
        5. MC-86252.png
          1003 kB

        Issue Links



              Unassigned Unassigned
              gregmilson Greg Milson
              79 Vote for this issue
              41 Start watching this issue