Skip to content

Commit 6c88eab

Browse files
committed
Hide compatibility settings from screen if mods isn't present
Fixes: #354
1 parent 29d1dab commit 6c88eab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/src/main/java/ca/fxco/moreculling/config/ModMenuConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public static Screen createConfigScreen(Screen parent) {
5252
if (modId.equals("minecraft")) {
5353
continue;
5454
}
55+
if (!Services.PLATFORM.isModLoaded(modId)) {
56+
continue;
57+
}
5558
DynamicBooleanListEntry aMod = new DynamicBooleanBuilder(Services.PLATFORM.getModName(modId))
5659
.setValue(entry.getBooleanValue())
5760
.setDefaultValue(MoreCulling.CONFIG.useOnModdedBlocksByDefault)

0 commit comments

Comments
 (0)