[MC-10543] Last Direct Multiplayerconnection does not get saved Created: 28/Feb/13  Updated: 04/Mar/13  Resolved: 04/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7, Snapshot 13w09c
Fix Version/s: Snapshot 13w10a

Type: Bug
Reporter: Turbocube644 Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 0
Labels: None

CHK:
Confirmation Status: Confirmed

 Description   

When using the "Direct Connect" function to join a server, it only saves your last connection in the memory, but not on the disk.
So everytime you reopen minecraft, the last connection field is blank again.



 Comments   
Comment by Kumasasa [ 28/Feb/13 ]

Fix:

GuiScreenServerList.java
    public void initGui()
    {
...
        this.serverTextField.setText(this.mc.gameSettings.lastServer);
...
    }

    public void onGuiClosed()
    {
        Keyboard.enableRepeatEvents(false);
        this.mc.gameSettings.lastServer = this.serverTextField.getText();
        this.mc.gameSettings.saveOptions();
    }
Comment by Kumasasa [ 28/Feb/13 ]

Sounds plausible.

Comment by Turbocube644 [ 28/Feb/13 ]

It's a bug because "lastServer" always gets saved with a blank string in options.txt and the blank string always gets loaded when you start the game. The only thing missing is the communication between the class, wich handles the options.txt file and the one wich is the direct connect gui.
Fixing or doing the connection between them is just a little fix and possible in a very short time for the developers.

Why I don't add the server to the list is simple: it's not "one" server but many (only the subdomain changes). It's saves a lot of time when you don't have to edit the entry in the list, but only in the direct connect gui, but rewriting the whole address every time I start Minecraft really annoys me, so knowing it's a very small fix, wich can become really annoying I reported it.

Comment by Kumasasa [ 28/Feb/13 ]

Come on, that's not a bug.
If you want that server to be persistant, simply add that server to the list.

Generated at Sun Jan 12 12:24:43 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.