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

Integer block property is not usable with values outside of the cached range (0-64)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.16 Pre-release 5
    • None
    • Plausible
    • (Unassigned)

      Having a block with an integer property that has a valid range outside of the range where the JVM has cached values for Integer objects (which is 0-64, as far as I know) causes the block state to not be able to be loaded from disk because the values get compared via reference equality and not equals() somewhere. Relevant stack trace when loading the world is attached.

            Unassigned Unassigned
            2xsaiko Marco Rebhan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: