Fixed #3082
This commit is contained in:
@@ -288,6 +288,10 @@ public class Schematics implements Loadable{
|
||||
return loadouts.get(block, Seq::new);
|
||||
}
|
||||
|
||||
public ObjectMap<CoreBlock, Seq<Schematic>> getLoadouts(){
|
||||
return loadouts;
|
||||
}
|
||||
|
||||
/** Checks a schematic for deployment validity and adds it to the cache. */
|
||||
private void checkLoadout(Schematic s, boolean validate){
|
||||
Stile core = s.tiles.find(t -> t.block instanceof CoreBlock);
|
||||
|
||||
@@ -99,7 +99,9 @@ public class LaunchLoadoutDialog extends BaseDialog{
|
||||
cont.pane(t -> {
|
||||
int i = 0;
|
||||
|
||||
for(Schematic s : schematics.getLoadouts(core)){
|
||||
for(var entry : schematics.getLoadouts()){
|
||||
if(entry.key.size <= core.size){
|
||||
for(Schematic s : entry.value){
|
||||
|
||||
t.button(b -> b.add(new SchematicImage(s)), Styles.togglet, () -> {
|
||||
selected = s;
|
||||
@@ -111,6 +113,10 @@ public class LaunchLoadoutDialog extends BaseDialog{
|
||||
t.row();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}).growX().get().setScrollingDisabled(true, false);
|
||||
|
||||
cont.row();
|
||||
|
||||
Reference in New Issue
Block a user