Minor optimization when turning MRL into blockstate list
This commit is contained in:
parent
85025b77fb
commit
833fdc9ae5
|
|
@ -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