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

Shields can continue to block after entity changes dimensions due to client and server desync

XMLWordPrintable

    • Icon: Bug 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, 1.20, 23w32a, 1.20.2, 23w40a, 23w42a, 23w43a, 23w46a, 1.20.3 Pre-Release 4, 1.20.3, 1.20.4, 24w07a, 24w13a
    • Confirmed
    • Player
    • Important
    • Platform

      The bug

      If the player is blocking when they change dimension via nether or end portal, they will continue to block attacks on the server side but will not be blocking client side.

      How to reproduce

      1. Give the player a shield, and block with it
        /give @s shield[minecraft:unbreakable={show_in_tooltip:true}]
        
      2. Setblock a nether / end portal, and enter it
        /setblock ~ ~ ~1 nether_portal
        
      3. Look north (for the sake of the next step)
      4. Damage the player
        /damage @p 3 minecraft:mob_attack at ~ ~ ~-2
        

      Notes

      1. If the shield is in the off hand when you replicate this bug, you will be able to interact with your main hand in ways such as eating, attacking, and using other items
      2. This issue used to occur previously if the player opened a GUI durring the brief time that their shield was disabled, but that is since not reproducable as a change in an unknown version made it so that player can interact with GUI containers durring that time period.

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

        1. 2016-02-20_10.14.17.png
          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
          MC-86252.png
          1003 kB

            Unassigned Unassigned
            Jingy Jiingy
            Votes:
            87 Vote for this issue
            Watchers:
            45 Start watching this issue

              Created:
              Updated:
              CHK: