if (rec.getSoil() != null) {
builder.add(rec.getSoil().toStack());
} else {
builder.add(new ItemStack(Blocks.DIRT));
}
<BUG>if (rec.getRequiredBlock() != null) {

builder.add(rec.getRequiredBlock().toStack());
</BUG>
}

if (rec.getSoil() != null) {
builder.add(rec.getSoil().toStack());
} else {
builder.add(new ItemStack(Blocks.DIRT));
