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

When appending list entries in another list, the entries get appended in reverse order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a
    • Fix Version/s: Minecraft 19w02a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      When using /data modify to append the entries of a list into another list, they get appended in reverse order.

      How to reproduce

      /setblock ~ ~ ~ minecraft:chest{Items:[{id:"minecraft:stone",Count:1b,tag:{list1:[1,2,3],list2:[1,2,3]}}]}
      /data modify block ~ ~ ~ Items[0].tag.list1 append from block ~ ~ ~ Items[0].tag.list2[]
      /data get block ~ ~ ~ Items[0].tag
      

      This results in the list [1,2,3,3,2,1] rather than the expected list [1,2,3,1,2,3]

        Attachments

          Activity

            People

            Assignee:
            boq [Mojang] Bartosz Bok
            Reporter:
            AlexMCool Alex³
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: