Don't try to tab complete hidden settings
This commit is contained in:
parent
7b5f419713
commit
638fcd393a
@ -177,7 +177,7 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
|
|||||||
.stream();
|
.stream();
|
||||||
}
|
}
|
||||||
Settings.Setting setting = settings.byLowerName.get(argc.getString().toLowerCase(Locale.US));
|
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) {
|
if (setting.getValueClass() == Boolean.class) {
|
||||||
TabCompleteHelper helper = new TabCompleteHelper();
|
TabCompleteHelper helper = new TabCompleteHelper();
|
||||||
if ((Boolean) setting.value) {
|
if ((Boolean) setting.value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user