Don't try to tab complete hidden settings

This commit is contained in:
ZacSharp 2021-05-24 03:20:31 +02:00
parent 7b5f419713
commit 638fcd393a
No known key found for this signature in database
GPG Key ID: 9453647B005083A3

View File

@ -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) {