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

Exception is not logged when reading options.txt entry fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Affects Version/s: Minecraft 18w44a, 20w12a, 20w13b
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When an entry of the options.txt file could not be read only the warning "Skipping bad option" with option name (and value) is logged. In some cases this is not enough information, instead the thrown exception should be logged as well.

      How to reproduce

      1. Create a backup of your options.txt file
      2. Edit the current options.txt:
        • Add an entry without separator (:):
          test
          
        • Add an entry with invalid float value:
          mouseSensitivity:invalid
          
      3. Start Minecraft
      4. Look at the log
        It only logged "Skipping bad option" with the option name, but did not log the exception (indicating why the option is malformed)

      Code analysis

      20w10a, Mojang names

      See net.minecraft.client.Options.load() and look for "Skipping bad option" (there are two occurences).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: