mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
PR Cleanup
This commit is contained in:
@@ -44,16 +44,13 @@ public class ModsDialog extends BaseDialog{
|
|||||||
super("@mods");
|
super("@mods");
|
||||||
addCloseButton();
|
addCloseButton();
|
||||||
|
|
||||||
buttons.button("@mods.guide", Icon.link, () -> Core.app.openURI(modGuideURL)).size(210, 64f);
|
if(mods.list().contains(LoadedMod::failed)){
|
||||||
|
|
||||||
if(mods.list().contains(m -> m.failed())){
|
|
||||||
buttons.button("@mods.restore", Icon.power, () -> {
|
buttons.button("@mods.restore", Icon.power, () -> {
|
||||||
Seq<LoadedMod> skipped = new Seq<>();
|
mods.list().each(LoadedMod::failed, m -> mods.setEnabled(m, true));
|
||||||
skipped.selectFrom(mods.list(), LoadedMod::failed);
|
|
||||||
|
|
||||||
skipped.each(m -> mods.setEnabled(m, true));
|
|
||||||
setup();
|
setup();
|
||||||
});
|
});
|
||||||
|
}else{ //no room for both buttons on mobile
|
||||||
|
buttons.button("@mods.guide", Icon.link, () -> Core.app.openURI(modGuideURL)).size(210, 64f);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!mobile){
|
if(!mobile){
|
||||||
|
|||||||
Reference in New Issue
Block a user