From e14efb2a4d917f83ae1abe36c46d9c35a5151275 Mon Sep 17 00:00:00 2001 From: Niix <46878004+Niix-Dan@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:21:42 -0300 Subject: [PATCH] Update SoundLocator.java (#212) --- .../anticope/rejects/modules/SoundLocator.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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.")