Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ protected int getMaxAge() {
@Override
public boolean canSurvive(BlockState state, LevelReader level, BlockPos pos) {
BlockState below = level.getBlockState(pos.below());
if (below.getBlock() instanceof TomatoCropHeadBlock || below.getBlock() instanceof TomatoCropBodyBlock) {
if (below.getBlock() instanceof TomatoCropBodyBlock) {
return true;
}
if (below.getBlock() instanceof TomatoCropHeadBlock) {
return false;
}
return super.canSurvive(state, level, pos);
Expand Down