Allow covering waterlogged cables. Closes #2610

This commit is contained in:
modmuss50 2021-11-26 21:09:09 +00:00
parent 4a839ae74f
commit 3e1f1b394a

View file

@ -150,7 +150,7 @@ public class CableBlock extends BlockWithEntity implements Waterloggable {
}
}
if (!state.get(COVERED) && !state.get(WATERLOGGED) && !type.canKill
if (!state.get(COVERED) && !type.canKill
&& stack.getItem() == TRContent.Plates.WOOD.asItem()) {
worldIn.setBlockState(pos, state.with(COVERED, true));
worldIn.playSound(playerIn, pos, SoundEvents.BLOCK_WOOD_PLACE, SoundCategory.BLOCKS, 0.6F, 1.0F);