From 2a4cfef7a8b6bad73e9728ce4ad20b31fdd4cafb Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Tue, 25 Jan 2022 21:33:40 +0100 Subject: [PATCH] Cannot empty this - Fixed crash when water cauldrons are loaded as part of a schematic --- .../com/simibubi/create/foundation/utility/BlockHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/utility/BlockHelper.java b/src/main/java/com/simibubi/create/foundation/utility/BlockHelper.java index 92a1c50fb..7037f24d7 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/BlockHelper.java +++ b/src/main/java/com/simibubi/create/foundation/utility/BlockHelper.java @@ -67,8 +67,9 @@ public class BlockHelper { return blockState.setValue(BlockStateProperties.HATCH, 0); if (blockState.hasProperty(BlockStateProperties.STAGE)) return blockState.setValue(BlockStateProperties.STAGE, 0); - if (blockState.hasProperty(BlockStateProperties.LEVEL_CAULDRON)) - return blockState.setValue(BlockStateProperties.LEVEL_CAULDRON, 0); + if (blockState.is(BlockTags.CAULDRONS)) + return Blocks.CAULDRON.delegate.get() + .defaultBlockState(); if (blockState.hasProperty(BlockStateProperties.LEVEL_COMPOSTER)) return blockState.setValue(BlockStateProperties.LEVEL_COMPOSTER, 0); if (blockState.hasProperty(BlockStateProperties.EXTENDED))