Host dialog name selection

This commit is contained in:
Anuken
2018-11-23 13:35:16 -05:00
parent 66c29c49e5
commit 1baf3190cd
2 changed files with 7 additions and 2 deletions

View File

@@ -50,6 +50,11 @@ public class HostDialog extends FloatingDialog{
content().add().width(65f);
content().addButton("$text.host", () -> {
if(Settings.getString("name").trim().isEmpty()){
ui.showInfo("$text.noname");
return;
}
ui.loadfrag.show("$text.hosting");
Timers.runTask(5f, () -> {
try{