mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Disguise option parameter ItemStack[] cannot be a null parameter
This commit is contained in:
parent
d1c1182b02
commit
f8172ed807
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue