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

Math error (random generation of zero) causing map gen to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 5, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w08a, Minecraft 18w09a, Minecraft 18w16a, Minecraft 1.13.1, 1.14.4, 19w41a, 19w46a, 1.15 Pre-release 3, 1.15.2, 20w07a, 20w14a, 20w17a, 20w21a, 1.16 Release Candidate 1, 1.16, 20w27a, 20w29a, 1.16.2
    • Confirmed
    • World generation

      There is a math error in MapGenBase.java (MCP Name) in the generate function.

      When the per chunk seeds are being generated there is a very small chance that either the x or z can be equal to 0.

      When doing the per chunk math it multiplies by 0 causing every chunk in the axis to be the same.

      The following seeds are affected:

      107038380838084
      164311266871034
      

      There needs to be a check so that if those values are 0, then it should be set to 1.

      I have recorded a video demonstrating this, including a fix:
      https://www.youtube.com/watch?v=D5c-DZA2R2U&feature=youtu.be

            Unassigned Unassigned
            marterik231 Erik Martin
            Votes:
            27 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: