diff --git a/src/main/java/anticope/rejects/modules/SoundLocator.java b/src/main/java/anticope/rejects/modules/SoundLocator.java index 241c0bd..b39692a 100644 --- a/src/main/java/anticope/rejects/modules/SoundLocator.java +++ b/src/main/java/anticope/rejects/modules/SoundLocator.java @@ -32,13 +32,6 @@ public class SoundLocator extends Module { private final SettingGroup sgRender = settings.createGroup("Render"); // General - private final Setting> sounds = sgGeneral.add(new SoundEventListSetting.Builder() - .name("sounds") - .description("Sounds to find.") - .defaultValue(new ArrayList<>(0)) - .build() - ); - private final Setting whitelist = sgGeneral.add(new BoolSetting.Builder() .name("whitelist") .description("Enable sounds filter whitelist.") @@ -46,6 +39,14 @@ public class SoundLocator extends Module { .build() ); + private final Setting> sounds = sgGeneral.add(new SoundEventListSetting.Builder() + .name("sounds") + .description("Sounds to find.") + .defaultValue(new ArrayList<>(0)) + .visible(whitelist::get) + .build() + ); + private final Setting chatActive = sgGeneral.add(new BoolSetting.Builder() .name("log-chat") .description("Send the position of the sound in the chat.")