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

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      Crash

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            Misoloo [Helper] Misode
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: