Update SoundLocator.java (#212)

This commit is contained in:
Niix
2023-02-02 12:21:42 -03:00
committed by GitHub
parent 5af1ca1a2f
commit e14efb2a4d

View File

@@ -32,13 +32,6 @@ public class SoundLocator extends Module {
private final SettingGroup sgRender = settings.createGroup("Render");
// General
private final Setting<List<SoundEvent>> sounds = sgGeneral.add(new SoundEventListSetting.Builder()
.name("sounds")
.description("Sounds to find.")
.defaultValue(new ArrayList<>(0))
.build()
);
private final Setting<Boolean> 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<List<SoundEvent>> sounds = sgGeneral.add(new SoundEventListSetting.Builder()
.name("sounds")
.description("Sounds to find.")
.defaultValue(new ArrayList<>(0))
.visible(whitelist::get)
.build()
);
private final Setting<Boolean> chatActive = sgGeneral.add(new BoolSetting.Builder()
.name("log-chat")
.description("Send the position of the sound in the chat.")