Disguise option parameter ItemStack[] cannot be a null parameter

This commit is contained in:
libraryaddict 2018-10-24 11:20:21 +13:00
parent d1c1182b02
commit f8172ed807

View File

@ -14,6 +14,11 @@ public class ParamInfoItemStackArray extends ParamInfoItemStack {
super(paramClass, name, valueType, description, possibleValues); super(paramClass, name, valueType, description, possibleValues);
} }
@Override
public boolean canReturnNull() {
return false;
}
@Override @Override
public Set<String> getEnums(String tabComplete) { public Set<String> getEnums(String tabComplete) {
String beginning = tabComplete.substring(0, tabComplete.contains(",") ? tabComplete.lastIndexOf(",") + 1 : 0); String beginning = tabComplete.substring(0, tabComplete.contains(",") ? tabComplete.lastIndexOf(",") + 1 : 0);