Update SoundLocator.java (#212)
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user