We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b040e commit 7d2ef1eCopy full SHA for 7d2ef1e
commandapi-core/src/main/java/dev/jorel/commandapi/config/ConfigGenerator.java
@@ -77,14 +77,7 @@ private <T> boolean shouldRemoveOptions(ConfigurationAdapter<T> config) {
77
Set<String> configOptions = config.getKeys();
78
Set<String> defaultConfigOptions = defaultConfig.getAllOptions().keySet();
79
80
- boolean shouldRemoveOptions = false;
81
- for (String option : configOptions) {
82
- if (!defaultConfigOptions.contains(option)) {
83
- shouldRemoveOptions = true;
84
- break;
85
- }
86
87
- return shouldRemoveOptions;
+ return !defaultConfigOptions.containsAll(configOptions);
88
}
89
90
0 commit comments