From a0e2428fae8cd97510744bad90936c2369706e87 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 20 Oct 2023 16:58:42 +1300 Subject: [PATCH] Lowercase disabled methods --- .../src/main/java/me/libraryaddict/disguise/DisguiseConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java index 50a6a5c0..ede686fe 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseConfig.java @@ -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));