(fix) edit servers with featured

This commit is contained in:
kirillsaint 2024-02-16 22:47:37 +06:00
parent b22201a1a2
commit 3d8f3b72a2

View File

@ -246,7 +246,7 @@ public class SilentMultiplayerGui extends SilentScreen {
case 7: case 7:
ServerComponent serverComponent = this.servers.get(selectedServer); ServerComponent serverComponent = this.servers.get(selectedServer);
if(serverComponent != null && serverComponent.getServer() != null) { if(serverComponent != null && serverComponent.getServer() != null) {
mc.displayGuiScreen(new AddServerGui(this, serverComponent.getServer(), true, selectedServer)); mc.displayGuiScreen(new AddServerGui(this, serverComponent.getServer(), true, selectedServer - Client.getInstance().getFeaturedServers().size()));
} }
break; break;
case 8: case 8: