mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
(fix) problem with refreshing featured servers
This commit is contained in:
parent
26caaa9e8d
commit
5782748a31
@ -8,4 +8,12 @@ public class ServerDataFeature extends ServerData {
|
|||||||
public ServerDataFeature(String serverName, String serverIp) {
|
public ServerDataFeature(String serverName, String serverIp) {
|
||||||
super(serverName, serverIp, false);
|
super(serverName, serverIp, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void resetData() {
|
||||||
|
this.field_78841_f = false;
|
||||||
|
this.pingToServer = 0;
|
||||||
|
this.populationInfo = null;
|
||||||
|
this.playerList = null;
|
||||||
|
this.serverMOTD = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,6 +89,7 @@ public class SilentMultiplayerGui extends SilentScreen {
|
|||||||
public void getServers() {
|
public void getServers() {
|
||||||
servers.clear();
|
servers.clear();
|
||||||
for(ServerDataFeature serverDataFeature : Client.getInstance().getFeaturedServers()) {
|
for(ServerDataFeature serverDataFeature : Client.getInstance().getFeaturedServers()) {
|
||||||
|
serverDataFeature.resetData();
|
||||||
servers.add(new ServerComponent(this, serverDataFeature));
|
servers.add(new ServerComponent(this, serverDataFeature));
|
||||||
}
|
}
|
||||||
for (int i = 0; i < savedServerList.countServers(); ++i)
|
for (int i = 0; i < savedServerList.countServers(); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user