Don't try to tab complete hidden settings

This commit is contained in:
ZacSharp committed 2021-05-24 03:20:31 +02:00
1 parent 7b5f419713
commit 638fcd393a
1 file changed
+1 -1
@@ -177,7 +177,7 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
.stream();
}
Settings.Setting setting = settings.byLowerName.get(argc.getString().toLowerCase(Locale.US));
if (setting != null) {
if (setting != null && !SettingsUtil.javaOnlySetting(setting)) {
if (setting.getValueClass() == Boolean.class) {
TabCompleteHelper helper = new TabCompleteHelper();
if ((Boolean) setting.value) {