diff --git a/gradle.properties b/gradle.properties index d630f038d..8543d9ca0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/versions/src/main/java/org/polyfrost/oneconfig/internal/mixin/compat/OneConfigV0CompatMixin.java b/versions/src/main/java/org/polyfrost/oneconfig/internal/mixin/compat/OneConfigV0CompatMixin.java index b479c6bec..6742bd3a3 100644 --- a/versions/src/main/java/org/polyfrost/oneconfig/internal/mixin/compat/OneConfigV0CompatMixin.java +++ b/versions/src/main/java/org/polyfrost/oneconfig/internal/mixin/compat/OneConfigV0CompatMixin.java @@ -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);