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

No value for argument in options.txt not correctly parsed (Skipping bad option: lastServer:)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.10.2, Minecraft 16w38a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 18w09a, Minecraft 18w20c, Minecraft 1.13-pre5, Minecraft 1.13-pre7, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 19w08b, 1.14.4, 19w40a, 1.15 Pre-release 1
    • Fix Version/s: 1.15 Pre-release 5
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When you leave the "Direct Connect" field in the multiplayer menu empty your launcher will print the following warning on startup:

      [Client thread/WARN]: Skipping bad option: lastServer:
      

      The reason

      The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

      The method net.minecraft.client.settings.GameSettings.loadOptions() calls on the splitter the method com.google.common.base.Splitter.omitEmptyStrings() this makes Strings like option: splitted at : become ["option"] instead of ["option",""].
      Because of this options with empty String values become a list with one item only. However, the code following after that tries to get two items.

      This could be fixed by leaving the call to the method com.google.common.base.Splitter.omitEmptyStrings() out.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                boq [Mojang] Bartosz Bok
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                13 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: