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

Crash when leaving out processors in a template pool: java.lang.IllegalArgumentException: bound must be positive

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.16.2
    • 21w20a
    • None
    • Plausible
    • Crash, Custom Worlds
    • Very Important

    Description

      The following template pool will crash the game.

      {
        "name": "foo",
        "fallback": "minecraft:empty",
        "elements": [
          {
            "weight": 1,
            "element": {
              "element_type": "minecraft:single_pool_element",
              "projection": "terrain_matching",
              "location": "bar"
            }
          }
        ]
      }

      The solution is to add "processors": "minecraft:empty" inside the element. Either this should be checked when parsing the file, or the property should be optional.

      Attachments

        Activity

          People

            slicedlime [Mojang] slicedlime
            Misoloo [Helper] Misode
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: