Fixed some GWT bugs and errors

This commit is contained in:
Anuken
2018-02-26 23:31:29 -05:00
parent bbe3115186
commit 828dd78611
6 changed files with 10 additions and 7 deletions

View File

@@ -23,6 +23,8 @@ public class AdminsDialog extends FloatingDialog {
private void setup(){
content().clear();
if(gwt) return;
float w = 400f, h = 80f;
Table table = new Table();

View File

@@ -20,6 +20,8 @@ public class BansDialog extends FloatingDialog {
private void setup(){
content().clear();
if(gwt) return;
float w = 400f, h = 80f;
Table table = new Table();

View File

@@ -87,7 +87,7 @@ public class PlayerListFragment implements Fragment{
float h = 74f;
for(Player player : playerGroup.all()){
NetConnection connection = Net.getConnection(player.clientid);
NetConnection connection = gwt ? null : Net.getConnection(player.clientid);
if(connection == null && Net.server() && !player.isLocal) continue;
@@ -162,7 +162,7 @@ public class PlayerListFragment implements Fragment{
});
}
}).update(b ->{
b.setChecked(connection != null && netServer.admins.isAdmin(connection.address));
b.setChecked(player.isAdmin);
b.setDisabled(Net.client());
}).get().setTouchable(() -> Net.client() ? Touchable.disabled : Touchable.enabled);