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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      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.

      Code analysis

      Code analysis by [Helper] Marcono1234 can be found in this comment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gregmilson Greg Milson
              • Votes:
                52 Vote for this issue
                Watchers:
                30 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: