Merge remote-tracking branch 'origin/main' into 1.18
This commit is contained in:
commit
f6bcb8d1ab
|
|
@ -321,6 +321,10 @@ public class ModelBakeryHelpers {
|
|||
}
|
||||
}
|
||||
}
|
||||
// check if there is only one possible state
|
||||
if(fixedProperties.size() == stateDefinition.getProperties().size()) {
|
||||
return ImmutableList.of(fixedState);
|
||||
}
|
||||
// generate all possible blockstates from the remaining properties
|
||||
ArrayList<Property<?>> anyProperties = new ArrayList<>(stateDefinition.getProperties());
|
||||
anyProperties.removeAll(fixedProperties);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user