Parse materials to uppercase for ItemStacks

This commit is contained in:
libraryaddict 2019-11-03 17:51:20 +13:00
parent d6b1b19c8e
commit 2f109de685

View File

@ -41,7 +41,7 @@ public class ParamInfoItemStack extends ParamInfoEnum {
return null; return null;
} }
Material material = Material.getMaterial(split[0]); Material material = Material.getMaterial(split[0].toUpperCase());
if (material == null) { if (material == null) {
throw new IllegalArgumentException(); throw new IllegalArgumentException();