Lowercase disabled methods

This commit is contained in:
libraryaddict 2023-10-20 16:58:42 +13:00
parent 56ee3e5227
commit a0e2428fae

View File

@ -708,7 +708,7 @@ public class DisguiseConfig {
DisguiseUtilities.getLogger().warning("Cannot load 'DisabledDisguises' in features.yml, invalid disguise types provided?");
}
setDisabledMethods(config.getStringList("DisabledMethods"));
setDisabledMethods(config.getStringList("DisabledMethods").stream().map(s -> s.toLowerCase(Locale.ROOT)).collect(Collectors.toList()));
setNeverUpdateProtocolLib(config.getBoolean("NeverUpdateProtocolLib", false));