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

root_system feature config's codec uses a wrong field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17
    • Fix Version/s: 1.17.1 Pre-release 1
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Custom Worlds, World generation
    • Mojang Priority:
      Important

      Description

      The codec of RootSystemFeatureConfig class uses the requiredVerticalSpaceForTree field twice, one for required_vertical_space_for_tree, the other for allowed_vertical_water_for_tree.

      It makes the allowedVerticalWaterForTree field unused, and prevents the feature to work as expected.

       

      Affected parts of the codec:

      .fieldOf("required_vertical_space_for_tree").forGetter(arg -> arg.requiredVerticalSpaceForTree)
      .fieldOf("allowed_vertical_water_for_tree").forGetter(arg -> arg.requiredVerticalSpaceForTree)

        Attachments

          Activity

            People

            Assignee:
            slicedlime [Mojang] slicedlime
            Reporter:
            Yanis48 Yanis
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: