Some general changes to the handling of blocks

This commit is contained in:
IronApollo
2019-01-14 05:49:05 -05:00
parent f74381b93f
commit 62e6e9de96
6 changed files with 42 additions and 17 deletions

View File

@ -95,6 +95,7 @@ public class LegacyMapper {
for (Map.Entry<String, String> blockEntry : dataFile.blocks.entrySet()) {
try {
BlockStateHolder blockState = BlockState.get(null, blockEntry.getValue());
// BlockState blockState = WorldEdit.getInstance().getBlockFactory().parseFromInput(blockEntry.getValue(), parserContext).toImmutableState();
BlockTypes type = blockState.getBlockType();
if (type.hasProperty(PropertyKey.WATERLOGGED)) {
blockState = blockState.with(PropertyKey.WATERLOGGED, false);