Added water check

This commit is contained in:
Anuken
2020-03-22 09:44:38 -04:00
parent ad45bebbdc
commit ea3e16ee16
3 changed files with 30 additions and 4 deletions

View File

@@ -302,6 +302,10 @@ public class PlanetDialog extends FloatingDialog{
stable.addButton("Launch", () -> {
if(selected != null){
if(selected.hasAttribute(SectorAttribute.naval)){
ui.showInfo("You need a naval loadout to launch here.");
return;
}
control.playSector(selected);
hide();
}