spgashfetiti

This commit is contained in:
Anuken
2019-09-21 23:41:56 -04:00
parent dc51afdc60
commit 552dc254da
3 changed files with 32 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ public class PausedDialog extends FloatingDialog{
cont.row();
cont.addButton("$hostserver", () -> {
if(net.active() && steam){
if(net.server() && steam){
platform.inviteFriends();
}else{
if(steam){
@@ -67,7 +67,7 @@ public class PausedDialog extends FloatingDialog{
ui.host.show();
}
}
}).disabled(b -> net.active() && !steam).colspan(2).width(dw * 2 + 20f).update(e -> e.setText(net.active() && steam && net.server() ? "$invitefriends" : "$hostserver"));
}).disabled(b -> !((steam && net.server()) || !net.active())).colspan(2).width(dw * 2 + 20f).update(e -> e.setText(net.server() && steam ? "$invitefriends" : "$hostserver"));
}
cont.row();