this turned out to be pretty difficult
This commit is contained in:
@@ -24,6 +24,8 @@ import mindustry.ui.*;
|
|||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
public class JoinDialog extends BaseDialog{
|
public class JoinDialog extends BaseDialog{
|
||||||
|
//TODO unused
|
||||||
|
Seq<Host> commmunityHosts = new Seq<>();
|
||||||
Seq<Server> servers = new Seq<>();
|
Seq<Server> servers = new Seq<>();
|
||||||
Dialog add;
|
Dialog add;
|
||||||
Server renaming;
|
Server renaming;
|
||||||
@@ -358,6 +360,7 @@ public class JoinDialog extends BaseDialog{
|
|||||||
}
|
}
|
||||||
|
|
||||||
void refreshCommunity(){
|
void refreshCommunity(){
|
||||||
|
commmunityHosts.clear();
|
||||||
int cur = refreshes;
|
int cur = refreshes;
|
||||||
|
|
||||||
global.clear();
|
global.clear();
|
||||||
@@ -378,6 +381,8 @@ public class JoinDialog extends BaseDialog{
|
|||||||
if(refreshes != cur) return;
|
if(refreshes != cur) return;
|
||||||
res.port = resport;
|
res.port = resport;
|
||||||
|
|
||||||
|
commmunityHosts.add(res);
|
||||||
|
|
||||||
//add header
|
//add header
|
||||||
if(groupTable[0] == null){
|
if(groupTable[0] == null){
|
||||||
global.table(t -> groupTable[0] = t).row();
|
global.table(t -> groupTable[0] = t).row();
|
||||||
|
|||||||
Reference in New Issue
Block a user