Fixed some GWT bugs and errors
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user