Fixed #50 (somehow?), as well as GWT runtime errors

This commit is contained in:
Anuken
2018-01-16 12:36:22 -05:00
parent f736699049
commit c2a10193c6
6 changed files with 21 additions and 14 deletions

View File

@@ -142,6 +142,8 @@ public class LoadDialog extends FloatingDialog{
slots.row();
if(Vars.gwt) return;
slots.addImageTextButton("$text.save.import", "icon-add", "clear", 14*3, () -> {
new FileChooser("$text.save.import", f -> f.extension().equals("mins"), true, file -> {
if(SaveIO.isSaveValid(file)){

View File

@@ -55,13 +55,15 @@ public class PausedDialog extends FloatingDialog{
content().row();
content().addButton("$text.hostserver", () ->{
if(Vars.world.getMap().custom){
ui.showError("$text.nohost");
}else {
ui.host.show();
}
}).disabled(b -> Net.active());
if(!Vars.gwt) {
content().addButton("$text.hostserver", () -> {
if (Vars.world.getMap().custom) {
ui.showError("$text.nohost");
} else {
ui.host.show();
}
}).disabled(b -> Net.active());
}
content().row();