Skip to content

Commit

Permalink
CopperGrowthSpeedRendererHandler support all pitcher crop
Browse files Browse the repository at this point in the history
resolved #81
  • Loading branch information
Fallen-Breath committed Nov 11, 2024
1 parent bb81d3c commit a323830
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,22 @@
//$$ import net.minecraft.registry.RegistryKeys;
//#endif

//#if MC >= 12001
//$$ import net.minecraft.block.PitcherCropBlock;
//$$ import net.minecraft.block.enums.DoubleBlockHalf;
//#endif

public class CropGrowthSpeedRendererHandler extends BasicGrowthSpeedRendererHandler
{
@Override
public boolean isTarget(BlockState blockState)
{
Block block = blockState.getBlock();
return block instanceof CropBlock || block instanceof StemBlock || block instanceof AttachedStemBlock;
return block instanceof CropBlock || block instanceof StemBlock || block instanceof AttachedStemBlock
//#if MC >= 12001
//$$ || (block instanceof PitcherCropBlock && blockState.get(PitcherCropBlock.HALF) == DoubleBlockHalf.LOWER)
//#endif
;
}

/**
Expand Down

0 comments on commit a323830

Please sign in to comment.