Hide isHidden content in mod info
This commit is contained in:
@@ -415,7 +415,7 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
}).width(400f);
|
}).width(400f);
|
||||||
|
|
||||||
Seq<UnlockableContent> all = Seq.with(content.getContentMap()).<Content>flatten().select(c -> c.minfo.mod == mod && c instanceof UnlockableContent).as();
|
Seq<UnlockableContent> all = Seq.with(content.getContentMap()).<Content>flatten().select(c -> c.minfo.mod == mod && c instanceof UnlockableContent u && !u.isHidden()).as();
|
||||||
if(all.any()){
|
if(all.any()){
|
||||||
dialog.cont.row();
|
dialog.cont.row();
|
||||||
dialog.cont.button("@mods.viewcontent", Icon.book, () -> {
|
dialog.cont.button("@mods.viewcontent", Icon.book, () -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user