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

Not set attributes throw error

XMLWordPrintable

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

      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)

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

              Created:
              Updated:
              Resolved:
              CHK: