Do not allow cross-planet launch pads

This commit is contained in:
Anuken
2022-05-09 12:21:21 -04:00
parent f2e5efaea7
commit 41413d65b7
3 changed files with 3 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ public class LaunchPad extends Block{
table.button(Icon.upOpen, Styles.cleari, () -> {
ui.planet.showSelect(state.rules.sector, other -> {
if(state.isCampaign()){
if(state.isCampaign() && other.planet == state.rules.sector.planet){
state.rules.sector.info.destination = other;
}
});