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

Default RangedAttribute causes crash (vanilla does not use this line)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 1.7.10
    • None
    • Windows
    • Unconfirmed

      This bug only shows up when modding and vanilla is asked to handle an S20Packet containing an attribute name that doesn't yet exist on the client entity.

      The client response is to create a default attribute but the parameters that vanilla uses are wrong because the default value is less than the minimum value, which gives a crash.

      the line in question is shortly after the text
      throw new IllegalStateException("Server tried to update attributes of a non-living entity (actually: " + entity + ")");

      The line in question is
      new RangedAttribute(snapshot.func_151409_a(), 0.0D,
      Double.MIN_NORMAL, Double.MAX_VALUE));

      but I think it should be

      new RangedAttribute(snapshot.func_151409_a(), 0.0D,
      -Double.MAX_VALUE, Double.MAX_VALUE));

            Unassigned Unassigned
            TheGreyGhost Jamie Peterson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: