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

Clearing banner patterns with commands doesn't update the banner block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 1.21.2 Release Candidate 1
    • None
    • Community Consensus
    • Block states, Entities
    • Normal
    • Platform

      If you clear a banner's patterns with

       

      /data merge block x y z {patterns:[]}
      

      The banner still shows as having patterns unless you relog (or fly away and come back).

       

      1. Get yourself a banner with at least 1 visible pattern
      2. Run the command above with the x y and z set to that banner's location
      3. Observe that the banner still has a pattern

      This is caused by BannerBlockEntity#saveAdditional not including an empty pattern list which when that is called due to network serialization for the ClientboundBlockEntityDataPacket, doesn't update the banner patterns on the client from what they previously were. Somehow an "empty" list of patterns has to be communicated to the client in order for it to update what it thinks the patterns are.

       

            Unassigned Unassigned
            Machine Maker Jake Potrebic
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: