Added a few utility methods.

This commit is contained in:
Matthew Miller
2018-08-03 23:01:56 +10:00
parent b2bc043eeb
commit b2769befdb
3 changed files with 29 additions and 5 deletions

View File

@ -268,7 +268,10 @@ class DefaultBlockParser extends InputParser<BlockStateHolder> {
// No wildcards allowed => eliminate them. (Start with default state)
state = blockType.getDefaultState();
} else {
state = new BlockState(blockType, blockStates);
state = blockType.getDefaultState().toFuzzy();
for (Map.Entry<Property<?>, Object> blockState : blockStates.entrySet()) {
state = state.with((Property) blockState.getKey(), blockState.getValue());
}
}
state = applyProperties(state, stateProperties);