Code cleanup

This commit is contained in:
Anuken
2020-12-16 10:39:28 -05:00
parent 4ad234ad75
commit d0cba1aff2
29 changed files with 38 additions and 60 deletions

View File

@@ -252,11 +252,10 @@ public class HudFragment extends Fragment{
if(android){
info.label(() -> memnative.get((int)(Core.app.getJavaHeap() / 1024 / 1024), (int)(Core.app.getNativeHeap() / 1024 / 1024))).left().style(Styles.outlineLabel).name("memory2");
info.row();
}else{
info.label(() -> mem.get((int)(Core.app.getJavaHeap() / 1024 / 1024))).left().style(Styles.outlineLabel).name("memory");
info.row();
}
info.row();
info.label(() -> ping.get(netClient.getPing())).visible(net::client).left().style(Styles.outlineLabel).name("ping");

View File

@@ -21,7 +21,6 @@ public class PlayerListFragment extends Fragment{
private boolean visible = false;
private Interval timer = new Interval();
private TextField sField;
private boolean found = false;
private Seq<Player> players = new Seq<>();
@Override
@@ -78,7 +77,7 @@ public class PlayerListFragment extends Fragment{
content.clear();
float h = 74f;
found = false;
boolean found = false;
players.clear();
Groups.player.copy(players);