Add chest to forbidden block disguises

This commit is contained in:
libraryaddict 2020-05-09 21:55:45 +12:00
parent 43531461f9
commit 93eef36c58
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -14,11 +14,19 @@ public class ParamInfoItemBlock extends ParamInfoItemStack {
public ParamInfoItemBlock(Class paramClass, String name, String valueType, String description,
Material[] possibleValues) {
super(paramClass, name, valueType, description, Arrays.stream(possibleValues).filter(m -> {
if (!m.isBlock())
return false;
switch (m) {
case CHEST:
case TRAPPED_CHEST:
return false;
default:
break;
}
if (NmsVersion.v1_13.isSupported())
if (!m.isBlock()) {
return false;
} else if (NmsVersion.v1_13.isSupported()) {
return true;
}
switch (m) {
case CAKE: