mojira.dev
MC-104818

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

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.

Related issues

Attachments

Comments

migrated
[media]
[Mod] Neko

Can confirm.

migrated

Confirmed.

migrated

I still don't know where to go to fix the issue. I am not the most computer literate, please provide explicit instructions on correcting this issue.

marcono1234

This bug does not cause any negative effects except the error message, which means there is no need for you to do anything. If you don't want this error message to appear just always leave any text in the "Direct Connect" text field.

migrated

But it's anything, how do you want us to understand this kind of thing ???
I who follow not informatitian and speak little English, question yourself !!!

migrated

Can be fixed by editing options.txt. Find "lastServer:" and add a number after it.

migrated

Can not find the options.txt file to edit source code. The issue will not let me play the game. Can someone please leave instructions as to fix this besides a cliff notes version of the Java Lesson on the coding? Would really love to launch the game again...

migrated

Confirmed for 1.13.1.

Bentroen

Confirmed for 19w08b.

muzikbike

Might be affecting 19w39a but i haven't checked the direct connect value.

marcono1234

boq

Confirmed

(Unassigned)

argument, direct-connect, options

Minecraft 1.10.2, Minecraft 16w38a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 6, ..., Minecraft 18w48b, Minecraft 19w08b, 1.14.4, 19w40a, 1.15 Pre-release 1

1.15 Pre-release 5

Retrieved