Skip to content

Commit

Permalink
fix build + bump
Browse files Browse the repository at this point in the history
  • Loading branch information
nextdayy committed Nov 13, 2024
1 parent 2fed725 commit 9e2d711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name=OneConfig
mod_id=oneconfig
version_major=1
version_minor=0
version_patch=0-alpha.33
version_patch=0-alpha.34

polyfrost.defaults.loom=3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ public abstract class OneConfigV0CompatMixin {

prop.description = opt.description;
prop.addMetadata("visualizer", visualizer);
prop.addDisplayCondition(opt::isHidden);
prop.addDisplayCondition(() -> {
if (opt.isHidden()) return Property.Display.HIDDEN;
else return Property.Display.SHOWN;
});
target.put(prop);
}
ConfigManager.active().register(t);
Expand Down

0 comments on commit 9e2d711

Please sign in to comment.