From eb960ab990fbbb11ad08d2134d3eec7705495f88 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Fri, 15 Sep 2023 12:07:53 +0600 Subject: [PATCH] Fix --- .../client/gui/multiplayer/SilentMultiplayerGui.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/silentclient/client/gui/multiplayer/SilentMultiplayerGui.java b/src/main/java/net/silentclient/client/gui/multiplayer/SilentMultiplayerGui.java index 0e4265d..1c01220 100644 --- a/src/main/java/net/silentclient/client/gui/multiplayer/SilentMultiplayerGui.java +++ b/src/main/java/net/silentclient/client/gui/multiplayer/SilentMultiplayerGui.java @@ -168,9 +168,9 @@ public class SilentMultiplayerGui extends SilentScreen { } public void connectToSelected() { - ServerData server = savedServerList.getServerData(selectedServer); + ServerComponent server = servers.get(selectedServer); if(server != null) { - this.connect(new ServerData(server.serverName, server.serverIP, false)); + this.connect(new ServerData(server.getServer().serverName, server.getServer().serverIP, false)); } }