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

Crash when table_bonus loot condition has empty chances list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 2
    • 1.20.4, 24w11a
    • None
    • Plausible
    • Crash, Data Packs
    • Important
    • Platform

      Summary
      table_bonus loot condition does not validate that chances list has an entry. When that list is empty, testing the loot condition triggers an error or (in case of an explosion) a crash.

      Steps to Reproduce

      1. Add the attached data pack. (Works with both 1.20.4 and 24w11a.)
      2. Explode a stone block with TNT.

      Expected Result
      The game does not crash.

      Actual Result
      The game crashes.

        1. crash-2024-03-16_01.58.29-server.txt
          6 kB
          apple502j
        2. deobf_crash-2024-03-16_01.58.29-server.txt
          25 kB
          [Bot] Arisa
        3. latest.log
          7 kB
          apple502j
        4. Minecraft 1.20.4 - Singleplayer 2024-03-16 01-58-22.mp4
          3.69 MB
          apple502j

            slicedlime [Mojang] slicedlime
            apple502j apple502j
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: