From 2f109de685a84729f47b83a263fb853a8aef4198 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 3 Nov 2019 17:51:20 +1300 Subject: [PATCH] Parse materials to uppercase for ItemStacks --- .../parser/params/types/custom/ParamInfoItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStack.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStack.java index ea0c0af1..51ae597e 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStack.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStack.java @@ -41,7 +41,7 @@ public class ParamInfoItemStack extends ParamInfoEnum { return null; } - Material material = Material.getMaterial(split[0]); + Material material = Material.getMaterial(split[0].toUpperCase()); if (material == null) { throw new IllegalArgumentException();