Skip to content

Commit

Permalink
Closes #8027
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Feb 4, 2025
1 parent 1bda606 commit 6ed9bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/mindustry/ctype/UnlockableContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public abstract class UnlockableContent extends MappableContent{
public boolean alwaysUnlocked = false;
/** Whether to show the description in the research dialog preview. */
public boolean inlineDescription = true;
/** Whether details of blocks are hidden in custom games if they haven't been unlocked in campaign mode. */
/** Whether details are hidden in custom games if this hasn't been unlocked in campaign mode. */
public boolean hideDetails = true;
/** Whether this is hidden from the Core Database. */
public boolean hideDatabase = false;
/** If false, all icon generation is disabled for this content; createIcons is not called. */
public boolean generateIcons = true;
/** How big the content appears in certain selection menus */
Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/ui/dialogs/DatabaseDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void rebuild(){
ContentType type = ContentType.all[j];

Seq<UnlockableContent> array = allContent[j]
.select(c -> c instanceof UnlockableContent u && !u.isHidden() && (tab == Planets.sun || u.allDatabaseTabs || u.databaseTabs.contains(tab)) &&
.select(c -> c instanceof UnlockableContent u && !u.isHidden() && !u.hideDatabase && (tab == Planets.sun || u.allDatabaseTabs || u.databaseTabs.contains(tab)) &&
(text.isEmpty() || u.localizedName.toLowerCase().contains(text))).as();

if(array.size == 0) continue;
Expand Down

0 comments on commit 6ed9bc0

Please sign in to comment.