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

Not set attributes throw error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.15 Pre-Release 2, 1.15.2
    • 1.16 Pre-release 5
    • None
    • Plausible
    • (Unassigned)

    Description

      AttributeInstance attributeInstance6 = baseAttributeMap3.getInstance(attributeSnapshot5.getName());
      if (attributeInstance6 == null) {
          attributeInstance6 = baseAttributeMap3.registerAttribute(new RangedAttribute(null, attributeSnapshot5.getName(), 0.0, Double.MIN_NORMAL, Double.MAX_VALUE));
      }
      

      are a few codelines in the "ClientPacketListener" class in the "handleUpdateAttributes" (according to the Mojang mappings), which I believe should not contain "Double.MIN_NORMAL", but rather "Double.MIN_VALUE", since this will in every case throw an exception, since 0 < DOUBLE.MIN_NORMAL (in the following RangedAttribute constructor)

      Attachments

        Activity

          People

            Unassigned Unassigned
            KennyTV Nassim Jahnke
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: