(fix) deleting server with featured servers

This commit is contained in:
kirillsaint 2024-01-26 13:37:44 +06:00
parent 0c5ea8e112
commit 1e57f101a5

View File

@ -231,7 +231,7 @@ public class SilentMultiplayerGui extends SilentScreen {
break; break;
case 2: case 2:
if(this.selectedServer != -1) { if(this.selectedServer != -1) {
this.savedServerList.removeServerData(this.selectedServer); this.savedServerList.removeServerData(this.selectedServer - Client.getInstance().getFeaturedServers().size());
this.savedServerList.saveServerList(); this.savedServerList.saveServerList();
this.selectServer(-1); this.selectServer(-1);
this.refreshServerList(); this.refreshServerList();