Cannot empty this

- Fixed crash when water cauldrons are loaded as part of a schematic
This commit is contained in:
simibubi 2022-01-25 21:33:40 +01:00
parent 30a026ab0c
commit 2a4cfef7a8

View file

@ -67,8 +67,9 @@ public class BlockHelper {
return blockState.setValue(BlockStateProperties.HATCH, 0); return blockState.setValue(BlockStateProperties.HATCH, 0);
if (blockState.hasProperty(BlockStateProperties.STAGE)) if (blockState.hasProperty(BlockStateProperties.STAGE))
return blockState.setValue(BlockStateProperties.STAGE, 0); return blockState.setValue(BlockStateProperties.STAGE, 0);
if (blockState.hasProperty(BlockStateProperties.LEVEL_CAULDRON)) if (blockState.is(BlockTags.CAULDRONS))
return blockState.setValue(BlockStateProperties.LEVEL_CAULDRON, 0); return Blocks.CAULDRON.delegate.get()
.defaultBlockState();
if (blockState.hasProperty(BlockStateProperties.LEVEL_COMPOSTER)) if (blockState.hasProperty(BlockStateProperties.LEVEL_COMPOSTER))
return blockState.setValue(BlockStateProperties.LEVEL_COMPOSTER, 0); return blockState.setValue(BlockStateProperties.LEVEL_COMPOSTER, 0);
if (blockState.hasProperty(BlockStateProperties.EXTENDED)) if (blockState.hasProperty(BlockStateProperties.EXTENDED))