From f8172ed807bb2410987921a3628299135a9d8aed Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 24 Oct 2018 11:20:21 +1300 Subject: [PATCH] Disguise option parameter ItemStack[] cannot be a null parameter --- .../parser/params/types/custom/ParamInfoItemStackArray.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStackArray.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStackArray.java index c6c5f11d..cf7883e9 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStackArray.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/params/types/custom/ParamInfoItemStackArray.java @@ -14,6 +14,11 @@ public class ParamInfoItemStackArray extends ParamInfoItemStack { super(paramClass, name, valueType, description, possibleValues); } + @Override + public boolean canReturnNull() { + return false; + } + @Override public Set getEnums(String tabComplete) { String beginning = tabComplete.substring(0, tabComplete.contains(",") ? tabComplete.lastIndexOf(",") + 1 : 0);